Skip to content

Instantly share code, notes, and snippets.

Avatar

Erick Clasen erickclasen

View GitHub Profile
@erickclasen
erickclasen / multi-pow-hash-of-string.py
Created May 6, 2022
Demonstrates SHA256 hashing. Shows a basic proof of work example as well.
View multi-pow-hash-of-string.py
'''
Original seed idea from
https://www.pythoncentral.io/hashing-strings-with-python/
'''
import hashlib
from datetime import datetime
mystring = input('Enter String to hash: ')
# Assumes the default UTF-8
hash_object = hashlib.sha256(mystring.encode())