CodyKochmann
7/1/2016 - 11:52 AM

Run sha512 hashes over text with in python with this one function. Why sha512? Why would you do less when the whole point of doing it being

Run sha512 hashes over text with in python with this one function. Why sha512? Why would you do less when the whole point of doing it being invented is for security?

def checksum(text):
    """ produces a sha512 hash over the given text """
    from hashlib import sha512
    from base64 import b64encode as b64e
    return(b64e(sha512(text).digest()))