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.