need pycryptodome
%%time
hashSha256(b'test')
key = b'testtesttesttest'
data = b'test'
password = b'testpw'
ciphertext, nonce = encryptAes(key,data)
print(ciphertext, nonce)
pwData, pwNonce = encryptPasswordAes(password, data = b'this is a very important data')
print(pwData, pwNonce)
decryptAes(key, ciphertext, nonce)
decryptPasswordAes(pwData, password, pwNonce)