You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@shiro.apache.org by "Alan D. Cabrera" <li...@toolazydogs.com> on 2010/10/24 04:44:58 UTC
Salty realms
So I checked in an example of a realm that uses per-password salt that doesn't require any code modifications from Shiro; this is what I have done in the past.
Some things to notice.
I've decoupled the hash, the hash algorithm, and the final encoding into simple loosely coupled interfaces. Doing this we don't have the swiss army knife of AbstractHash. IMO, we should have a simple interface with implementations. Encoders should also be broken out and not aggregated.
We also don't need the HashedCredentialsMatcher hierarchy either.
Not a working example. Just a sketch for a starting point of discussions.
Regards,
Alan
Re: Salty realms
Posted by "Alan D. Cabrera" <li...@toolazydogs.com>.
Sandbox.
Regards,
Alan
On Oct 25, 2010, at 10:37 AM, Mike K wrote:
>
> Alan, where did you check this in?
> --
> View this message in context: http://shiro-developer.582600.n2.nabble.com/Salty-realms-tp5666845p5671643.html
> Sent from the Shiro Developer mailing list archive at Nabble.com.
Re: Salty realms
Posted by Mike K <mk...@semanticresearch.com>.
Alan, where did you check this in?
--
View this message in context: http://shiro-developer.582600.n2.nabble.com/Salty-realms-tp5666845p5671643.html
Sent from the Shiro Developer mailing list archive at Nabble.com.