Take a look:
https://github.com/apache/shiro/blob/master/tools/hasher/src/main/java/org/apache/shiro/tools/hasher/Hasher.java
On Mon, Jan 29, 2018 at 8:55 AM, Olaf wrote:
> That's the functionality I'm looking for. What's the corresponding Java
> class
> / function?
>
>
>
That's the functionality I'm looking for. What's the corresponding Java class
/ function?
--
Sent from: http://shiro-user.582556.n2.nabble.com/
like:
>
> // String password;
> String hash = hashPassword(password);
>
> bool ok = verifyPassword(password, hash);
>
> It it's not available it might be nice to add it.
>
>
>
> --
> Sent from: http://shiro-user.582556.n2.nabble.com/
I have, but it doesn't look like a good match.
Users shouldn't have to bother with salts. It should be like:
// String password;
String hash = hashPassword(password);
bool ok = verifyPassword(password, hash);
It it's not available it might be nice to add it.
--
Sent from: http://shiro-user
Take a look at the CredentialMatcher:
https://shiro.apache.org/realm.html#Realm-CredentialsMatching
On Fri, Jan 26, 2018 at 10:26 AM, Olaf wrote:
> Hi,
>
> I'm looking for a simple function that'll hash a password, like PHP's
> password_hash:
Hi,
I'm looking for a simple function that'll hash a password, like PHP's
password_hash: http://php.net/manual/en/function.password-hash.php
Does Shiro provide such a function?
I understand Shiro is an entire framework but currently my needs are limited
to a few simple functions.
A matching