+ 5

How to decrypt the SHA-256 to text again?

I learn these days about some cryptography. I got SHA-256...I encrypt some text but I searched and tried a lot to return to text ,but don't know how!? https://code.sololearn.com/WD3ojq5T1fEO/?ref=app When I was learning about it I could learn how to encrypt text,but SL is not supported my code 😅... Just if I am ganna use this cryptography in future want to know how to decrypt again ; Note : wanna know how to do this by JavaScript or any library from it.

15th Jan 2020, 6:28 AM
Basel.Al_hajeri?.MBH()
Basel.Al_hajeri?.MBH() - avatar
3 Réponses
+ 2
Coder Kitten what is the difference between Hashing and decryption?
15th Jan 2020, 7:07 AM
Basel.Al_hajeri?.MBH()
Basel.Al_hajeri?.MBH() - avatar
+ 2
The only thing you can do is a dictionary or brute force attack which compares hashes of word lists to the hash you wish to "decrypt". there's no real reversion like Coder Kitten said already. Hashes like SHA haven't been made to encrypt anything anyway and are not considered secure enough to store sensitive information in. these hashing algorithms are made to be fast because their original purpose is to verify file integrity of downloads, for example. a secure algorithm would be designed to be slow to calculate. for actual encryption of communication, you would neither use conventional nor secure hashing. instead, the concept of having a public and a private key is used, which is different entirely: end to end encryption that's both secure and reversible.
17th Jan 2020, 12:14 AM
grdr
0
Thank you Gregor Dietrich and Coder Kitten ... I got it after posting the question 🙂
17th Jan 2020, 8:13 AM
Basel.Al_hajeri?.MBH()
Basel.Al_hajeri?.MBH() - avatar