Crates.io | scryptenc-cli |
lib.rs | scryptenc-cli |
version | |
source | src |
created_at | 2022-11-18 10:46:14.796691+00 |
updated_at | 2025-01-09 04:45:08.851211+00 |
description | An utility for encrypt and decrypt files |
homepage | https://sorairolake.github.io/scryptenc-rs/ |
repository | https://github.com/sorairolake/scryptenc-rs |
max_upload_size | |
id | 717838 |
Cargo.toml error: | TOML parse error at line 24, column 1 | 24 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include` |
size | 0 |
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-cli
If 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.scrypt
Decrypt a file:
rscrypt dec data.txt.scrypt data.txt
Output as a human-readable string:
rscrypt info data.txt.scrypt
Output:
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 | jq
Output:
{
"N": 1024,
"r": 8,
"p": 1
}
--generate-completion
option generates shell completions to standard output.
The following shells are supported:
bash
elvish
fish
nushell
powershell
zsh
Example:
rscrypt --generate-completion bash > rscrypt.bash
Please see the following:
The upstream repository is available at https://github.com/sorairolake/scryptenc-rs.git.
The source code is also available at:
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 project is compliant with version 3.2 of the REUSE Specification. See copyright notices of individual files for more details on copyright and licensing information.