Skip to content

Instantly share code, notes, and snippets.

@junqueira
Created August 4, 2021 21:01
Show Gist options
  • Save junqueira/5ef894874c57b49f5eb87aa5f94a12f8 to your computer and use it in GitHub Desktop.
Save junqueira/5ef894874c57b49f5eb87aa5f94a12f8 to your computer and use it in GitHub Desktop.
import hashlib
def encrypt_string(hash_string):
sha_signature = \
hashlib.sha256(hash_string.encode()).hexdigest()
return sha_signature
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment