Usage

Basic usage

Encrypt a file
rscrypt enc data.txt data.txt.scrypt
Decrypt a file
rscrypt dec data.txt.scrypt data.txt

Provides information about the encryption parameters

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 shell completion

--generate-completion option generates shell completions to stdout.

The following shells are supported
  • bash

  • elvish

  • fish

  • nushell

  • powershell

  • zsh

Example
rscrypt --generate-completion bash > rscrypt.bash