You can't decrypt hashed passwords, a hash is a one way encryption.
Authentication is done by comparing the hash for the password entered with
the hash stored in the database.

/Daniel
On 9 Aug 2013 14:51, "Nagaraju Kurma" <[email protected]> wrote:

> i am using the password encryption technique SHA-256 which is built in for
> the Apache shiro API
>
> configuration:
>
> in spring context xml file
> ---------------------------------
>
> <bean class="org.apache.shiro.authc.credential.HashedCredentialsMatcher">
> <property name="hashAlgorithmName" value="SHA-256" />
>  <property name="storedCredentialsHexEncoded" value="false" />
> </bean>
>
> while storing encrypted password in database
> ---------------------------------------------------------
>
> user.setPassword(new Sha256Hash("password", user.getUsername().trim())
> .toBase64());
>
>
> as we know that shiro internally does password decryption and
> authenticates the logging user, but now i am having the requirement to
> decrypt the password manually at out side.
>
>
> please can anybody suggest how to decrypt  or can anybody share the
> decryption utility code.
>
>
> thanks in advance..... :)
>
>
>
> --
>
> Regards,****
>
> Nagaraju.
>

Reply via email to