Hi, Thanks for your reply. A couple of clarifications. I need
to use the public key provided by the a 3rd party that I am sending
encrypted data to, and I must use RSA encryption. I believe what I
am looking for will be something like:
<cfsavecontent variable="myText">
This is a bunch of text that will
be encrypted in the file.
</cfsavecontent>
<cfset myText_encrypted = encrypt(myText, pubKey,
"RSA/NONE/PKCS1Padding")>
I am not sure how to set the value of pubKey. I have the
Base64 encoded modulus and exponent for the 3rd parties Public Key,
but I am not sure how to convert the modulus and exponent into the
key format that the encrypt() function is looking for.