File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes 256 key size in AES Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "256 key size in AES" Watch "256 key size in AES" New topic
Author

256 key size in AES

Sumayah Abdul
Greenhorn

Joined: Nov 14, 2008
Posts: 21
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

Joined: Nov 14, 2008
Posts: 21
I found an answer
here
 
Don't get me started about those stupid light bulbs.
 
subject: 256 key size in AES
 
It's not a secret anymore!