I'm newbie in this topic and I don't know what exactly I should look for that's why I decided to ask my question here. If I have key for AES encryption which has constant length and I'm trying to encrypt strings with constant length as well, does the resultant encrypted string will always have the same length?
CodePudding user response:
That depends on what you mean by 'the same length'.
The same length as the original string: generally no; the original string will be padded to a multiple of the cipher block-length. Check padding modes for details.
The same length every time you encrypt: yes; as long as you stick to the same mode and padding the encrypted output will have the same length.