No project description provided
Project description
simple-file-cryptography
Table of Contents
Installation
pip install simple-file-cryptography
License
simple-file-cryptography is distributed under the terms of the Apache-2.0 license.
Examples
Activate the GUI:
python -m "simple_file_cryptography" -g
Generate a key:
python -m "simple_file_cryptography" -kg
Encrypt a file:
python -m "simple_file_cryptography" -m encrypt -k "c2ebbce1532c050164ff9edc28fa4ee5" -i "some_file.txt" -o "some_file.txt.enc"
Encrypt a file with automatically generated key (key will be printed out):
python -m "simple_file_cryptography" -m encrypt -kg -i "some_file.txt" -o "some_file.txt.enc"
Decrypt a file:
python -m "simple_file_cryptography" -m decrypt -k "c2ebbce1532c050164ff9edc28fa4ee5" -i "some_file.txt.enc" -o "some_file.txt"
To encrypt or decrypt with Python code, use functions provided in simple_file_cryptography.crypto_utility module.
from simple_file_cryptography.crypto_utility import decrypt_file, encrypt_file, generate_key
key = generate_key()
encrypt_file("in.txt", "in.txt.enc", key)
decrypt_file("in.txt.enc", "out.txt", key)
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file simple_file_cryptography-0.0.2.tar.gz.
File metadata
- Download URL: simple_file_cryptography-0.0.2.tar.gz
- Upload date:
- Size: 8.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.23.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
abc441cd1057279f85932bd37c77bc104d991ee33ee95be19590e81769757f8c
|
|
| MD5 |
421d12e4fa07413507c4be362fa0eb2e
|
|
| BLAKE2b-256 |
bca2d17ec77ecf8dd6e2851cedf170a80dcdf9984b26c6a840dc7ee925b2052a
|
File details
Details for the file simple_file_cryptography-0.0.2-py3-none-any.whl.
File metadata
- Download URL: simple_file_cryptography-0.0.2-py3-none-any.whl
- Upload date:
- Size: 10.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.23.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
64754645c9f2bd55a18720f7d9f2bbee42f4cf06a2b38812dd96e1a3c2dd4369
|
|
| MD5 |
8faf6d1f18fd75f3f42a32ab5577e05e
|
|
| BLAKE2b-256 |
4b498ee18a2b81fb57dfb65438aa9e17d63dff443a7fbd2a352b56148bb4310e
|