1 unstable release
0.3.0 | Jan 12, 2019 |
---|
#6 in #decrypting
21KB
502 lines
File Crypto
A high performace cross-platform command line tool for fastly encrypting / decrypting any file with AES-256-GCM, verifying the integrity and the security with HMAC-SHA512.
Getting Started
Installing
cargo install file-crypto
Usage
The encrypt/decrypt mode flag can be ignore, the application will detect the mode by the suffix of the file. Encrypted file will be end with .fc
suffix.
By the way, you can always use the flag -e
or -d
to set the encrypt / decrypt mode.
Encrypt file
file-crypto -e /your/any/file/path
Encrypt file with custom key
file-crypto -e -k yourkey /your/any/file/path
Decrypt file
file-crypto -d -k yourkey /your/any/file/path
Built With
- Rayon - The parallelism library for parallelly reading/writing file
- Ring - Using the AES-256-GCM and HMAC-SHA512
- Memmap - For memory-mapped file IO
- Clap - For parsing command line arguments
License
file-crypto
is primarily distributed under the terms of both the MIT license and the Apache License (Version 2.0).
See LICENSE-APACHE, LICENSE-MIT for details.
Copyright (c) 2018 Wei Huang.
Dependencies
~9.5MB
~258K SLoC