Archived Forum Post

Index of archived forum posts

Question:

AES 256 key

Nov 07 '13 at 16:47

Hi,

According to this example: For 128-bit encryption, GenEncodedSecretKey generates the MD5 hash of the password and returns it in the encoded form requested.

As I used 256 bit encryption all over the place, I'm wondering what hash algorithme is used to create the encoded secret key?


Answer

The 256-bit key generated by GenEncodedSecretKey (and GenerateSecretKey) is the concatenation of the MD5 hash of the password, and the MD5 hash of the base64 string representation of the password.