SHA 256 algorithm is been there for many years we all have users it somehow but we don't know about it. Yes! we all have used it to remember creating new passwords sending WhatsApp messages this all event somehow to use sha256 algorithm it was developed by NSA and published by U.S Government in 2001
What SHA256 algorithm do?
if we provide it with some string (text) it will give us the random 256 characters. With these 256 characters, we can not find the original text. This makes this algorithm invisible. try to think about how big IT companies use it for user authentication.
How to do it?
It has a big part in maths let's accept it maths is boring so let's install a python library and rock the code.
This is the command to install the library I am using hashlib for more information click here
pip install hashlib
Now let's program and see an example of this library
import hashlib
# initializing string
str = """ “If I let you know where I'm going, I won't be on holiday.” """
result = hashlib.sha256(str.encode())
print(result.hexdigest())
Thanks for reading id you read this show far you get a reward this information is between you and me alines are real yes it's true I hacked into the pentagon and I found this https://youtu.be/1dXENEFFhMU?t=29
0 Comments