+1 on Apache Shiro, it's a good alternative. Thanks Janne for the writeup! Cheers, Freddy
On Tue, 11 Jan 2011 15:03 +0200, "Janne Jalkanen" <janne.jalka...@ecyrd.com> wrote: > > BTW, this reminds me... If your Stripes app needs security, using Apache > Shiro together with Stripes is a breeze. > > http://www.ecyrd.com/ButtUgly/wiki/Main_blogentry_100910_1 > > /Janne > > On 11 Jan 2011, at 00:12, Joaquin Valdez wrote: > > > 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 > > joaquinfval...@gmail.com > > > > > > > > > > ------------------------------------------------------------------------------ > > 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 > > Stripes-users@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/stripes-users > > > ------------------------------------------------------------------------------ > 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 > Stripes-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/stripes-users > ------------------------------------------------------------------------------ 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 Stripes-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/stripes-users