I wanted to create a python program thats asks for an input then hashes(sha-256) the input then prints it. Does this already exist? How would I go about doing so.
using hashlib
:
from hashlib import sha256
input_ = input('Enter something: ')
print(sha256(input_.encode('utf-8')).hexdigest())