I have exactly the same problem. How did you handle this Steve? On Dec 11, 5:30 am, Steve Hugg <[email protected]> wrote: > More debugging on this issue... > > I am using this method to generate keys from a passphrase: > > KeyGenerator kgen = KeyGenerator.getInstance("AES", "BC"); > SecureRandom sr = SecureRandom.getInstance("SHA1PRNG", > "Crypto"); > sr.setSeed(seed); > kgen.init(128, sr); > SecretKey skey = kgen.generateKey(); > byte[] raw = skey.getEncoded(); > > This results in a different key for a given passphrase on 2.3 than it > does on 1.5-2.2. > > Froyo returns this information for KeyGenerator and SecureRandom > objects: > > AES BC version 1.34 > SHA1PRNG Crypto version 1.0 > > Gingerbread returns: > > AES BC version 1.45 > SHA1PRNG Crypto version 1.0
-- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

