Q:

how to get original string value from encrypted string?

I am encrypting password using DigestUtils.sha256Hex("password").I get encrypted password as 5e884898da28047151d0e56f8dc6292773603d0d6aabbdd62a11ef721d1542d8
I want original password string from encrypted . How shall i get it?
Please help me.
Thanks

A:

The whole point of Sha256 hashing is that you cannot decrypt it. When doing a login check, you should hash the user entered password and match it with the one you've stored in your datalayer.

