Skip to content

Get SHA 3 256 of a string in Python

import hashlib

# Get the sha-3-256 of the string.
def get_sha_3_256_of_string(your_string):
    return hashlib.sha3_256(your_string.encode()).hexdigest()

def main():
    # Get the sha-3-256 of the string.
    print(get_sha_3_256_of_string("Hello World!"))


See also  PHP code snippet - How to send input value in a database ?

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.