This 3rd-party application does not set the hash and IV ( = initialization vectors ) directly, instead it uses SecretKeyFactory.generateSecret() to derive the encryption key from the passphrase.
I don't know exactly how this derivation is done, I'm guessing PKCS#5 v2.0 PBKDF2?
Crypt::CBC meanwhile either works in "OpenSSL mode" or, if you use the key directly, you have to specify the salt and IV yourself. If anyone has figured out how to get Crypt::CBC and javax.crypto ( = SunJCE ) working nicely together, i'd love to hear about it.
_________________________________________________ Philippine Linux Users' Group (PLUG) Mailing List [email protected] (#PLUG @ irc.free.net.ph) Read the Guidelines: http://linux.org.ph/lists Searchable Archives: http://archives.free.net.ph

