#Timestampをsha256でhash化
###まず下準備
from datetime import datetime,date
import time
import hashlib
###encodeできるように型を変える&&取り出したい形に整える。
t_today = datetime.now()
s_today = t_today.strftime('%Y/%m/%d %H:%M*%S')
###sha256でhash化
crypto = hashlib.sha256(s_today.encode('utf-8')).hexdigest()
###SUCCESS !
###参考
https://docs.python.org/ja/3.8/library/datetime.html
https://pg-chain.com/python-hash-hashlib
https://note.nkmk.me/python-datetime-usage/