Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

256 key size in AES  RSS feed

 
Sumayah Abdul
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello everyone,
I'm encrypting using Symmetric keys and using the following code

which is working fine. but when i change the key size to 256 in

I get an error at the (cipher.init(Cipher.ENCRYPT_MODE, key);) that the keysize is illegal. how can i use 256 keysize for AES?

Thank you
 
Sumayah Abdul
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I found an answer
here
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!