Skip to content

Instantly share code, notes, and snippets.

@junqueira
Created August 4, 2021 21:01
Show Gist options
  • Select an option

  • Save junqueira/5ef894874c57b49f5eb87aa5f94a12f8 to your computer and use it in GitHub Desktop.

Select an option

Save junqueira/5ef894874c57b49f5eb87aa5f94a12f8 to your computer and use it in GitHub Desktop.

Revisions

  1. junqueira created this gist Aug 4, 2021.
    6 changes: 6 additions & 0 deletions hashlib
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@
    import hashlib

    def encrypt_string(hash_string):
    sha_signature = \
    hashlib.sha256(hash_string.encode()).hexdigest()
    return sha_signature