rijndael AES

Login to reply to this topic.
Tue, 2007-02-13 10:26
Joined: 2007-02-13
Forum posts: 1
How can I encrypt (and decrypt) messages of 44 Bytes?! The key length is 128 bit (16 Bytes).

Wed, 2007-02-14 09:02
Joined: 2004-09-06
Forum posts: 235
Re: rijndael AES
Since the key length is 16 bytes, the block size for AES will be 16 bytes.
You should use padding to make your data multiple of 16 bytes.

So your 44 bytes data will become 48 bytes long. There are various standards that tell how padding can be done before encryption and how it can be removed after decryption.

We used FIPS standard. Take a look at this link...
http://www.di-mgt.com.au/cryptopad.html
  • Login to reply to this topic.