pip install pynacl python from nacl import utils encryption_key = utils.random(32) python from nacl import utils, secret encryption_key = utils.random(32) encryptor = secret.SecretBox(encryption_key) message = b"Hello, PyNacl!" ciphertext = encryptor.encrypt(message) decryptor = secret.SecretBox(encryption_key) decrypted_message = decryptor.decrypt(ciphertext)


上一篇:
下一篇:
切换中文