7 lines
128 B
Python
7 lines
128 B
Python
|
import hashlib
|
||
|
|
||
|
def hash(string):
|
||
|
string = str(string)
|
||
|
hashed = hashlib.sha256(str.encode(string)).hexdigest()
|
||
|
return hashed
|