rscrypt
rscrypt (scryptenc-cli
) is a command-line utility for
encrypt and decrypt files.
This is a Rust implementation of scrypt(1)
.
Installation
From source
If you want to enable optimizations such as LTO, set them using environment variables.
From binaries
The release page contains pre-built binaries for Linux, macOS and Windows.
How to build
Please see BUILD.adoc.
Usage
Basic usage
Encrypt a file:
Decrypt a file:
Provides information about the encryption parameters
Output as a human-readable string:
Output:
Parameters used: N = 1024; r = 8; p = 1;
Decrypting this file requires at least 1 MiB of memory.
Output as JSON:
|
Output:
Generate shell completion
--generate-completion
option generates shell completions to stdout.
The following shells are supported:
bash
elvish
fish
nushell
powershell
zsh
Example:
Command-line options
Please see the following:
Changelog
Please see CHANGELOG.adoc.
Contributing
Please see CONTRIBUTING.adoc.
Acknowledgment
This program is inspired by the scrypt encryption utility, and built on top
of the scryptenc
crate.
License
Copyright © 2022–2024 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.0 of the REUSE Specification. See copyright notices of individual files for more details on copyright and licensing information.