import hashlib name = "grepper" hashed_name = hashlib.sha256(hashed_name.encode('utf-8')).hexdigest()) print(hashed_name) # result: 82475175ad97f60d1e2c57ef5fd8ae45629d555e1644d6f2a37b69b550a96e95