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.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b96d629eb0d7e1d4303c90a7082cbbe7bf70ab21b34b5ab082df0733751d303a |
|
MD5 | f2540f67ff0f2ed20ea4ec6329f1dc6d |
|
BLAKE2b-256 | d2d93ecb2c4d42a2e6aaa1e3fbfc8a09a1bc49c4df2392b6bcb5c7fa7ad98f0f |
Close
Hashes for python_cryptography_fernet_wrapper-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 295910ef10b6c38144db42679434919a595b409bf4cb6e15acc28388b96a371d |
|
MD5 | d2e428fedfb7716804b3cfc375343206 |
|
BLAKE2b-256 | ec738db51dac76e886e145e5254628f9745b273eb7928c034815d695ee336e63 |