ncpoc/cryptotools.py

9 lines
132 B
Python

# rename to cryptotools
import os
import hashlib
def generate_nodeid():
return hashlib.sha256(os.urandom(256/8)).hexdigest()