Posts by Anderson Oliveira • 1 point
2 posts
-
0
votes1
answer170
viewsA: How does openssl_encrypt work for the AES-256-CBC method with a key less than 16 characters?
I was able to solve it this way: byte[] key = Encoding.UTF8.GetBytes("minha senha"); if (key.Length < 32) { var paddedkey = new byte[32]; Buffer.BlockCopy(key, 0, paddedkey, 0, key.Length); key =…
-
0
votes1
answer170
viewsQ: How does openssl_encrypt work for the AES-256-CBC method with a key less than 16 characters?
A client uses AES-256-CBC encryption on a PHP system using openssl_encrypt and I need to perform the same operation on a system using C#. However, the key it reports has only 12 characters and in C#…