On Tue, Dec 27, 2011 at 3:11 PM, chander <mohan.c...@gmail.com> wrote:

> Exception is :    java.security.NoSuchAlgorithmException :
> SecretKeyFactory AES implementation not found.
>
>
> Please help and rectify the code or if possible give a working code
> for File encryption using AES. i don't know why this implementation is
> not there.

Posting the same question twice in different threads is rarely useful.

Assuming that byteKey is the raw key, you can construct a secret key
like this (SecretKey is just a marker interface):

SecretKey secretKey = new SecretKeySpec(byteKey, "AES");

You don't need a SecretKeyFactory.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to