secured
Secured is a versatile Rust package that provides robust encryption and decryption capabilities. It can be seamlessly integrated as a library in other Rust applications or used as a standalone command-line interface (CLI) tool.
[!WARNING] This crate is under development and APIs are rapidly changing (including this README!). Make sure to lock to a specific crate version to avoid updates.
Features
- Encryption and Decryption: Easily encrypt and decrypt files with password, safely.
- A
ChaCha20cipher is used, with a 32-bytes long encryption key, a 2-wordsIV, and a 2-wordscounter. The cipher encrypts bytes dividing them in 64-bytes chunks, and processing each chunk in parallel.
- A
- Cli & Library: Use as a standalone CLI tool or integrate as a library in your Rust applications.
Installation
To use secured as a CLI tool or integrate it into your Rust project, ensure you have Rust installed, then:
As a CLI tool
As a Library
Usage
As a CLI Tool
Secured is straightforward to use from the command line. Here are the basic commands:
-
Encryption
Encrypts the specified
<FILE>. An optional[PASSWORD]can be passed directly to the command. -
Decryption
Decrypts the specified
<FILE>. An optional[PASSWORD]can be passed directly to the command. Obviously, the password must be the same used during encryption.
As a Library
To use Secured as a library in your Rust application, simply import the package and utilize its encryption and decryption functions as per your requirements.
use Enclave;
use Key;
See package documentation for more information
Contributing
Contributions are welcome! Feel free to open issues or submit pull requests.
License
Secured is distributed under the MIT License. See LICENSE for more information.