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
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: 256 key size in AES
 
Similar Threads
signer information does not match? Help...
Encrypted values all contain same final characters
How to use AES DECRYPT_MODE?
AES Encryption Service
crytography