A wrapper for cryptography.fernet
Project description
python-cryptography-fernet-wrapper
usage
-
Importing
pip install python-cryptography-fernet-wrapper
from fernet_wrapper import Wrapper as fernet_wrapper
-
Encrypt
encrypted_data = fernet_wrapper.encrypt(data, key)
-
Decrypt
decrypted_data = fernet_wrapper.decrypt(encrypted_data, key)
-
Generate random key
key = fernet_wrapper.gen_key()
-
Generate key from password
key = fernet_wrapper.key_from_pass(password)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for python-cryptography-fernet-wrapper-1.0.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7bb819fbd7c4f789be987c418869ff3d03770615062ce0f62b28230202e239f5 |
|
MD5 | 9172234db047c3cfe53e27af9def6feb |
|
BLAKE2b-256 | 4f1ac5abd7eca230dffe103005618bded510b9c5206281d4b49a09aa7c664ac7 |
Close
Hashes for python_cryptography_fernet_wrapper-1.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c6de7b6f125e66cdffc121be79c21f9fd06468ceb58b8fbed8cc7eebd1a699cb |
|
MD5 | 1d8938d539a3038bafd4b95ac817dd6a |
|
BLAKE2b-256 | 7a0240a76d120b42efee51406180a45182574d2e59f0d3e0e94cc425422ee7d6 |