You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@shiro.apache.org by Warren Bell <wa...@gmail.com> on 2013/10/17 19:58:11 UTC
Authentication with passwords encrypted in Triple Des
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