Click here to Skip to main content
16,004,686 members

Comments by Member eric67 (Top 1 by date)

Member eric67 3-Jul-19 16:54pm View    
Hi George,
not there isn't any salt used so far. I directly input the key of 16 bytes "manually" for test purposes.

I figured out myself why the encrypted message is 1 block longer when 16 bytes are input in the message . This has to do with the PKCS7 padding mode that requiees the padding always to add at least 1 bytes data at the end of the message, thus if the message is 16 bytes long, at least 1 byte padding is added ( 16 bytes int htis case actually to make Message.Length mod 16 == 0).

That explains it.

Thnaks for your suggestion anyway