Skip to Main Content

Java Security

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

AES key length.

843811Mar 21 2007 — edited Mar 22 2007
Hello I am writing a untility that will allow my customer to choose between AES and DES encryption. The encrypting and decrypting is shared by several different people so we will all share a common key.

For DES the following works fine
byte key[] = "abcdEFGH".getBytes();
skeySpec = new SecretKeySpec(key, ENCRYPTION_ALGORITHEM)


I need to know how many characters are needed for AES. I did get upto
36 characters then gave up.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 19 2007
Added on Mar 21 2007
2 comments
130 views