“Criptografia Pypi” Respostas de código

Criptografia Python

>>> from cryptography.fernet import Fernet
>>> # Put this somewhere safe!
>>> key = Fernet.generate_key()
>>> f = Fernet(key)
>>> token = f.encrypt(b"A really secret message. Not for prying eyes.")
>>> token
'...'
>>> f.decrypt(token)
'A really secret message. Not for prying eyes.'
Crowded Coyote

Criptografia Pypi

from cryptography.fernet import Fernet
>>> # Put this somewhere safe!
>>> key = Fernet.generate_key()
>>> f = Fernet(key)
>>> token = f.encrypt(b"A really secret message. Not for prying eyes.")
>>> token
b'...'
>>> f.decrypt(token)
b'A really secret message. Not for prying eyes.'
Shiny Scarab

Respostas semelhantes a “Criptografia Pypi”

Perguntas semelhantes a “Criptografia Pypi”

Procure respostas de código populares por idioma

Procurar outros idiomas de código