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.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 74f118afad763ceb1c1eaaba6b06e19cc35e5cffb4008e7154675171fa116a92 |
|
MD5 | 2b626a1e6ce5e9537c551ef2cf3cc154 |
|
BLAKE2b-256 | b976bd8e49f1ef38ff7b93ef194be5bbd16dcec43aca3f09176fb9fbb565ac7b |
Close
Hashes for python_cryptography_fernet_wrapper-1.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0cc7d536fedec01e12bc6d4f0cf9772d102d4db9786f10108ed90e519151e9b6 |
|
MD5 | 61400d34755898ffa8a54adb9b006b78 |
|
BLAKE2b-256 | 54c324d1d6ff64a3cbd85b327d0f0621e48c5feb8aaca238f20a5bcbcd0463ab |