Quote:
How do I convert input string to hash and back to original string
Short answer: you don't.
Hashing is a one way ticket, there is no return.
Encryption works both ways.
General principles: Your bank account number is made of the real account number and a key (a couple digits).
The key is a hash code calculated from the account number, and together, they verify a mathematical property. The hash is easily computed and verified, but not the reverse.