[Opensource] pasword decryption
Lirian Ostrovica
lirian.ostrovica at senecac.on.ca
Tue Oct 15 08:29:42 PDT 2002
Hi,
I wanted to have back the original user's password, from the encrypted
one ( that I get when I call: currentUser.getPassword() )
Can someone save me some time, by sending the few (I guess) lines of
code needed for that.
With a quick effort I wrote the following but it did not work.
private String decryptPass(String encryptedPass) throws Exception {
CryptoManager cm = CryptoManager.getInstance();
boolean usingStrongCrypto = cm.isUsingStrongCrypto();
cm.loadClasses(usingStrongCrypto);
com.jcorporate.expresso.core.security.weakencryption.StringEncryption se
=
new
com.jcorporate.expresso.core.security.weakencryption.StringEncryption();
return se.decryptString(encryptedPass.getBytes());
}
many thanks
Lirian
More information about the Opensource
mailing list