This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#-user-agent sets the User-Agent header in the HTTP request to mimic a web browser. In this example, it is set to simulate Google Chrome on Windows 10. | |
#--quiet suppresses unnecessary output from wget, showing only the content of the page. | |
#-O - redirects the output of wget to the standard output instead of saving it to a file. | |
#Not sure if user-agent is required or not, but playing it safe and assuming bots are not welcome. | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' | |
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()) |