I received what I thought to be a very strange requirement from a vendor for my latest project and before I go back to them asking for new requirements or clarification I thought I would bounce it off the stackoverflow crowd to make sure I wasn't completely wrong myself.
We're sending a file to a vendor with sensitive information in it. The vendor has told us that we need to encrypt the file with RSA 2048 bit encryption. I repeated the requirement 3 times to them to get clarification on exactly what they needed and each time they confirmed that simply encrypting the file contents is not what they were asking for but instead they needed me to encrypt the entire file.
My primary development language is C# and so I have looked for a way to do this using C#, then broadened my search just to find anything that would indicate how this may be done but I can't find anything. Furthermore my colleague has tried using RSA 2048 in a proof of concept to encrypt the contents of a file but is running into a character encryption limitation of 246 characters making me think it's not even possible. After the 246th character is added we get a crash error: "Key not valid for use in specified state".
Appreciate any help!