shiro-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nagaraju Kurma <>
Subject how to decrypt the SHA-256 encryption password
Date Fri, 09 Aug 2013 12:51:04 GMT
i am using the password encryption technique SHA-256 which is built in for
the Apache shiro API


in spring context xml file

<bean class="org.apache.shiro.authc.credential.HashedCredentialsMatcher">
<property name="hashAlgorithmName" value="SHA-256" />
<property name="storedCredentialsHexEncoded" value="false" />

while storing encrypted password in database

user.setPassword(new Sha256Hash("password", user.getUsername().trim())

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..... :)




View raw message