rscrypt (scryptenc-cli) is a command-line utility for
encrypt and decrypt files using the scrypt encrypted data format.
This is a Rust implementation of scrypt(1).
cargo install scryptenc-cliIf you want to enable optimizations such as LTO, set them using environment variables.
The release page contains pre-built binaries for Linux, macOS and Windows.
Please see BUILD.adoc.
Encrypt a file:
rscrypt enc data.txt data.txt.scryptDecrypt a file:
rscrypt dec data.txt.scrypt data.txtOutput as a human-readable string:
rscrypt info data.txt.scryptOutput:
Parameters used: N = 1024; r = 8; p = 1;
Decrypting this file requires at least 1 MiB of memory.
Output as JSON:
rscrypt info -j data.txt.scrypt | jqOutput:
{
"N": 1024,
"r": 8,
"p": 1
}completion subcommand generates shell completions to standard output.
The following shells are supported:
bashelvishfishnushellpowershellzsh
Example:
rscrypt completion bash > rscrypt.bashPlease see the following:
The upstream repository is available at https://github.com/sorairolake/scryptenc-rs.git.
Please see CHANGELOG.adoc.
Please see CONTRIBUTING.adoc.
This program is inspired by the scrypt encryption utility, and built on top
of the scryptenc crate.
https://sorairolake.github.io/scryptenc-rs/
Copyright (C) 2022 Shun Sakai (see AUTHORS.adoc)
- This program is distributed under the terms of the GNU General Public License v3.0 or later.
- Some files are distributed under the terms of the Creative Commons Attribution 4.0 International Public License.
This project is compliant with version 3.3 of the REUSE Specification. See copyright notices of individual files for more details on copyright and licensing information.
