Encrypter
This package contains 2 main functions for Encrypting and Decrypting a file. encrypt_file() creates an encrypted copy of a file using Fernet (symmetric encryption) in the working directory. The function takes a file as main argument and a key_file as optional argument. If no key_file is given, then a key for the encryption is created using Fernet.generate_key()
decrypt_file() is used for decrypting the file generated by the previous function. It requires the encrypted file and the key generated (or used) during the encryption process.
Installation
To install run the following:
pip install encrypter-fernet-dr
Usage
from encrypter_fernet_dr import encrypt_file
# generate key and encrypted copy of my_file in the working directory
encrypt_file('my_file')
from encrypter_fernet_dr import decrypt_file
# decrypt the file passing the key generated or used before
decrypt_file('my_file_encrypted', 'my_key')
Developing Encrypter
To install encrypter, along with the tools needed to develop and run tests, run the following in your virtualenv:
$ pip install -e .[dev]
Metadata
Release files for encrypter-fernet-dr 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| encrypter_fernet_dr-0.0.2.tar.gz | 3.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| encrypter_fernet_dr-0.0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.6 kB
Release files / encrypter_fernet_dr-0.0.2.tar.gz
| Download URL | encrypter_fernet_dr-0.0.2.tar.gz |
|---|---|
| Size | 3.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f03ba881953ccff9070fd89cadc8a6d54068b8e141122cf93a08714d6520e358
|
|
BLAKE2b-256 checksum How to use checksums |
f926b37f0a1a8eed6be23cc021871b044cd1dedf539a858ecc97ea0be7a5d392
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.5.0.1 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.7.1
|
Release files / encrypter_fernet_dr-0.0.2-py3-none-any.whl
| Download URL | encrypter_fernet_dr-0.0.2-py3-none-any.whl |
|---|---|
| Size | 5.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b6479b8eea3040dd9a82810668e5a59a1510aaa0427073bda82cb82c10cd0fea
|
|
BLAKE2b-256 checksum How to use checksums |
6751f0e520cc70c49ee9aa8da3f71786380d5c2909b7ebc16521aebbef80a411
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.5.0.1 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.7.1
|