However use a good password, see below.Īlso what if I want to use a password like 'my-key-001'?Ī password with high entropy is important otherwise the attackers can be successful by testing passwords. That is %40 times slower than AES-128 since it requires 14 rounds. If you use a password it will generate a 256-bit size. According to your key size it will select the key variants. You should you padding like padding: 7Īs I have read that CryptoJS expect to use 256 key size if I pass a password.ĬryptoJS supports AES-128, AES-192, and AES-256. you want to pad the message yourself, probably that is you want to test a new padding scheme that we don't see in your code. your message is an exact multiple of the block size, though still not recommended.The example is multiple of 16-byte that causes no problem, however your next plaintext is not. You have used the noPadding and that is the issue. This worked, but if I want to use a different plain text like 'Hello World' then it failed.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |