Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

256 key size in AES

 
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