Hi,
How can I use 128 Bit AES with fixed Len output using C#?
Example: I need to enter a value that might be a between 1 character to 16 character. And I have to encrypt the data using 128 Bit AES. Output must be 16 character. How do I do that?
Kind Regards
Amit GuptaPosted May 17, 2016, 4:24 PM
Amit GuptaPosted May 25, 2016, 3:34 PM
Niyazi TorosPosted May 25, 2016, 7:06 AM
Amit GuptaPosted May 18, 2016, 4:37 AM
Niyazi TorosPosted May 18, 2016, 1:45 AM
String password = 1234567890123456; I shouldn’t use PadLeft. Am I right?
String password = 12345; I should use PadLeft as you post it. String fixedpwd = password.PadLeft (16, '#'); Am I right?
If my String password is 16 character I need my output 16 character as well.
· String EncryptedPassword = ab89ergh234fhy8s;
· String EncryptedPassword = jkl34i67jgad6aw3;