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.6.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | efa1c783ed3e382a00a90b6c7f9d2c44ae5d90aa0838be075b46a2cf2f0067fb |
|
MD5 | 941640d469c6b96e151fd8fe5ad3256f |
|
BLAKE2b-256 | 7105803bf093d924fdbfc82072579e8d31f45299d0455dedf828b21fec93902c |
Close
Hashes for python_cryptography_fernet_wrapper-0.0.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ae78a0ece5cf598b83f223397a5783f0b54729784ad7ed33e0536670fd12931b |
|
MD5 | bd06f7a57d966193cac2bf4b70a791f4 |
|
BLAKE2b-256 | 4fb9609acd9f4be5c8cacefb45fb202bf19f1e7fd423fe1e9beeb1a813255d84 |