No project description provided
Project description
CRYPT_DIR
- Encrypt all your files in a directory and write into another directory if needed
- Clean the encrypted directory if files or directories have been deleted
- Decrypt all your files in a directory and write into another directory if needed
INSTALLATION
pip install --upgrade crypt-dir
DECRYPT IT YOURSELF - SPECIFICATION
You don't need to know the specification. For some folks who want to know exactly what happened with their files, here is the specification for key_file
and .enc
files:
-
if
key_file
does not exist,crypt_dir
will create a random key of 32 bytes usingos.urandom
encoded intohex
-
two algorithms are used in
crypt_dir
:SHA1
andAES-256
inCBC
mode -
.enc
filekey_hash
:SHA1
bytes of keyfile_hash
:SHA1
bytes of filefile_size
: little-endian encoded file size in uint64iv
:AES256
initialization vectorfile encrypted
:AES256
file encrypted bytes with chunk size of2^30
| key_hash | file hash | file size | iv | file encrypted |
| 20 bytes | 20 bytes | 8 bytes | 16 bytes | n bytes |
UPLOAD
rm -rf dist crypt_dir.egg-info
python setup.py sdist
twine upload dist/*
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
crypt-dir-0.1.3.tar.gz
(5.3 kB
view hashes)