Hello!
In the Stripes book there is an example of encoding a password to be stored in
the database:
try {
MessageDigest md = MessageDigest.getInstance("SHA-1");
byte[] bytes = md.digest(password.getBytes());
ep = Base64.encodeBytes(bytes);
System.out.println(ep);
}
catch (NoSuchAlgorithmException exc) {
throw new IllegalArgumentException(exc);
}
Does anyone have example code of how to decode the encrypted value from the
code above?
Thank you! I have tried to do this longer than I care to admit :-)
Joaquin Valdez
[email protected]
------------------------------------------------------------------------------
Gaining the trust of online customers is vital for the success of any company
that requires sensitive data to be transmitted over the Web. Learn how to
best implement a security strategy that keeps consumers' information secure
and instills the confidence they need to proceed with transactions.
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users