[CryptoAPI] Decrypt Generated HashHex from ComputeHash (SHA256)

Forge Component
Published on 3 Mar (3 weeks ago) by Ricardo Silva
18 votes
Published on 3 Mar (3 weeks ago) by Ricardo Silva

Hi Sir,

Do you have a way in the tool how to decrypt the generated hashhex come from  ComputeHash (SHA256)?

in my case I need to encrypt the text using SHA256 then also need to decrypt the computed hashhex to original text again

Thank you so much in advance


SHA256 is a one-way hash function. It cannot be reverse. The usage of it for verification works by comparing both hashed values. If you want to do encrypt - decrypt, you may make use of this API https://www.outsystems.com/forge/component/956/crypto-aes/?Unfollow=False a sample usage can be found on this thread - https://www.outsystems.com/forums/discussion/21874/samples-for-encryption-and-decryption/

John is right. one-way hashes are not meant to be decryptable.

But you don't need to use another library. CryptoAPI has Encrypt / Decrypt functions which work with reversible encryption (AES), and is more secure than Crypto AES.