我有此代码:
import hashlib
def encrypt_string(password,key):
sha_signature = hashlib.sha256(password.encode()).hexdigest()
return sha_signature
sha_signature = encrypt_string(password=input("palavra:"),key=input("chave:"))
print(sha_signature)
我想用我选择的密钥对密码进行加密,我的问题是我将密钥放在哪里?