posted 17 years ago
i am trying to encrypt a xml file.iam trying to do PasswordBasedEncryption
using AES.but when i pass the algorithm name like this
SecretKey key = SecretKeyFactory.getInstance("AES").generateSecre(keySpec);
Cipher ecipher = Cipher.getInstance(key.getAlgorithm());
it throws a NoSuchAlgorithmException.
please reply
Regards
Captain Jack Sparrow