ppiTech
asked on
VB.NET encryption using AES algorithm and given passphrase.
I would like to begin by saying that I have no experience with VB.NET. I have a vendor that wants to show my website through an iframe and is sending a query string to validate the user with the url parameter of the iframe tag. He would like to encrypt the variables within the query string. I have demonstrated the encryption with ColdFusion utilitizing the encrypt tag and the attributes of a given passkey (ex. TestPass), the AES algorithm and Hex encoding. The line would look like the below.
encrypt(string,'TestPass', 'AES','Hex ')
My question is... how do I encrypt the same string with VB.NET?
encrypt(string,'TestPass',
My question is... how do I encrypt the same string with VB.NET?
Do you want the same encryption result that you would get with ColdFusion?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
bob learned.. I would like the result to be the same.
(No points... this isn't my area)
> I would like the result to be the same.
@Bob Learned - FYI, some of the CF settings are implicit. Their ColdFusion code is using the following settings :
encrypt(string, password,'AES','Hex')
* string - plain text string treated as UTF8 encoded
* password - assumed to be base64 encoded
* 'AES' - Uses AES/ECB/PKCS5Padding
* 'Hex' - return encrypted bytes as hex
> I would like the result to be the same.
@Bob Learned - FYI, some of the CF settings are implicit. Their ColdFusion code is using the following settings :
encrypt(string, password,'AES','Hex')
* string - plain text string treated as UTF8 encoded
* password - assumed to be base64 encoded
* 'AES' - Uses AES/ECB/PKCS5Padding
* 'Hex' - return encrypted bytes as hex
ASKER
it_saige.. your code looks good just waiting for my vendor to get back to me. I will update this question asap.