I want to use my key that is a BigIntegar in aes encryption
843811Nov 17 2007 — edited Nov 21 2007Random rand = new Random();
BigInteger secretKey= new BigInteger(1024,3,rand) ;
Cipher aesCipher = Cipher.getInstance("AES");
aesCipher.init(Cipher.ENCRYPT_MODE,secretKey);