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.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 504c52e82792b6fb7f2708722c45d2e79b4217b5322d7d709eb25c416a303b7a |
|
MD5 | 297d5e0b92a895ed6c567f119f61b8c3 |
|
BLAKE2b-256 | 9db7a539e9d3f13312b41ca4c18458a89657fc5e5c8308b3b257fe6e587208d1 |
Close
Hashes for python_cryptography_fernet_wrapper-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9a0a8c96072306de9ed4cb32d0ecd6b43172693214ac89b4bf0c8eadd177f88f |
|
MD5 | 47d83a19ff5ee379927b4cbc87cc94c2 |
|
BLAKE2b-256 | 04e41803d2ba4abeffd19b11c67218a8051c840a77e67489081fe8f8604db896 |