Hello.
Since i'm not a C# user, can you please tell me what's the result of :
Encript("Secret Text","Secret Password")
If it's 2iZUJ9WSebaU6g5n14Qt2Q==, then it's done.
If not, please give me the base64Encoded values of SecretKey.GetBytes(32) and SecretKey.GetBytes(16) with this password
Nelson
Hello,
thank you for helping me with this.
Perhaps we should come to some sort of arrangement regarding the fee before you put any work into this?
Here's the result:
Encrypted Value = G0z6oznEOtpr+U8L3BJ9dHVd2WCCyDp3XvpV3H8FYSI=
SecretKey.GetBytes32=FHTf0hw+j70sbltfqpPcEUMUmUCiLOJtn0Yw1MElSWs=
SecretKey.GetBytes16=LG5bX6qT3BE9q/9wwsNzew==
Here's an excerpt from the comments in the C# code:
//This class uses an extension of the PBKDF1 algorithm defined in the PKCS#5 v2.0
//standard to derive bytes suitable for use as key material from a password.
//The standard is documented in IETF RRC 2898.
Somehow I believe that the Cipher should be set to
"AES/ECB/PKCS5Padding"
And that the key algorithm should have "SHA-1"
Kind regards
/Mattias