How do I use Triple DES in a Shiro application for authentication ? Are
there CredentialMatchers where I just feed it the key and initial vector
and it does the rest or do I need to write my own implementation ? I
have an older non Shiro app and the code is like this:
Encrypter encrypter = new TripleDesEncrypt("blahblahblah-key",
"blah-initvec");
String encryptedPassword = encrypter.encrypt(password);
// Match encryptedPassword with password stored in db
TripleDesEncrypt uses:
javax.crypto.Cipher
javax.crypto.spec.IvParameterSpec
javax.crypto.spec.SecretKeySpec
org.apache.commons.codec.binary.Base64
Are there Shiro implementations of Triple Des and how do I use them for
authenticating encrypted passwords ?
--
Thanks,
Warren Bell