pycryptofile allows to encrypt/decrypt using ssh keys
Project description
pyCryptoFile
pyCryptoFile contains some functions to encrypt/decrypt using ssh keys.
The source for this project is available here.
pyCryptoFile module can be called in command line : python3 pyCryptoFile.py -h
usage: pyCryptoFile.py [-h] [-V] [-f FILE] [-m {encrypt,decrypt}] [-k KEYFILE]
pyCryptoFile is a python3 program that encrypts, decrypts using ssh key encryption
optional arguments:
-h, --help show this help message and exit
-V, --version Display the version of pyCryptoFile
-f FILE, --file FILE file to encrypt/decrypt
-m {encrypt,decrypt}, --mode {encrypt,decrypt}
encrypt/decrypt mode
-k KEYFILE, --keyfile KEYFILE
public key file if encrypt mode or private key file if decrypt mode
example to encrypt a file content and put in another file :
python3 pyCryptoFile.py -f mytext2.txt -k ~/.ssh/id_rsa.pub > mytextcrypted.txt
example to decrypt a file content and put in another file :
python3 pyCryptoFile.py -f mytextcrypted.txt -k ~/.ssh/id_rsa -m decrypt > mydecrypted.txt
release notes
1.0.7 fix on pyCryptoFile function wrong tab before return encoded and also fixing the bytes to crypt and encrypt to 128 and 344.
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
pycryptofile-1.0.7.tar.gz
(7.1 kB
view hashes)
Built Distribution
Close
Hashes for pycryptofile-1.0.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6bdf82e728877f905d0d4589488d049d058b8b53fd9bce490fba84d2a4c1d3e0 |
|
MD5 | 7eb0403c2606fce44c750f2be0435bb1 |
|
BLAKE2b-256 | ce1181556c53f13becc73567000da1f33f08c2971352ed41a3a3c96a9fd85706 |