A wrapper for cryptography.fernet
Project description
python-cryptography-fernet-wrapper
usage
-
Importing
pip install python-cryptography-fernet-wrapper
from fernet_wrapper.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-0.0.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e5d5819d19290d882b8a2ee4cad8d2348ae2a8f85b382223c6a3ab2da483d5b4 |
|
MD5 | c8d7fd3980b4ac0d69952d694a9b45e9 |
|
BLAKE2b-256 | 341b64de888d64e8a55f0c47410885d455de4f3c321f0d0a7d503b5056ce6956 |
Close
Hashes for python_cryptography_fernet_wrapper-0.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7d7ac4aef8d25bf36ffc4e129287bc07fe2215dd0e699fb2527bf99eb803aa65 |
|
MD5 | b0224dcbd1bdc2b958138a0ab74ab01d |
|
BLAKE2b-256 | 31d3e19889be1ba1dd451a4fb2c6026b37cf2ba67fa7fc3add7f784ea3018b1b |