我試圖遷移以下到Python 3 def mkhash(password, salt=None):
"""
Compute SHA256 hash of password with pbkdf2 algorithm.
Call with salt=None for creating hash. To compute verification
hash, su
在將變量插入到sqlite3中並且變量被散列時遇到問題。 這裏是我的代碼: if passadefinir == passadefinir2:
maindb.execute("DELETE FROM Password WHERE ID = 'not'")
maindb.execute("INSERT INTO Password(ID) VALUES ('set')")