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!

I want to use my key that is a BigIntegar in aes encryption

843811Nov 17 2007 — edited Nov 21 2007
Random rand = new Random();
BigInteger secretKey= new BigInteger(1024,3,rand) ;
Cipher aesCipher = Cipher.getInstance("AES");
aesCipher.init(Cipher.ENCRYPT_MODE,secretKey);
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 19 2007
Added on Nov 17 2007
12 comments
387 views