I’m trying to encrypt a simple string using AES algorithm.
Everything seems fine and i’m able to decrypt it.
Just for curiosity i printed the encrypted data to the console and i
was surprised to see it.
Input String : raw text string.
Encrypted data : Díå¼[¶cE¶Ÿ¸’E‚;èýaó1ÒŽ&ýÈZ
Decrypted Data : raw text string.
Can anyone explain me why the encrypted data bits are twice long as that of input string..?
Encryption works on blocks of data of a fixed size. Appropriate padding is added during encoding and removed during decoding.