19 releases

new 0.4.0 Jan 9, 2025
0.3.3 Aug 4, 2024
0.3.2 Apr 18, 2024
0.3.0 Feb 18, 2024
0.2.5 Nov 29, 2023

#109 in Command line utilities

Download history 44/week @ 2024-09-22 2/week @ 2024-09-29 5/week @ 2024-11-03 7/week @ 2024-11-17 129/week @ 2025-01-05

129 downloads per month

GPL-3.0-or-later

120KB
2.5K SLoC

abcrypt

CI Version MSRV License

abcrypt (abcrypt-cli) is a command-line utility for encrypt and decrypt files using the abcrypt encrypted data format.

Installation

From source

cargo install abcrypt-cli

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:

abcrypt encrypt data.txt > data.txt.abcrypt

Decrypt a file:

abcrypt decrypt data.txt.abcrypt > data.txt

Provides information about the encryption parameters

Output as a human-readable string:

abcrypt information data.txt.abcrypt

Output:

Parameters used: memoryCost = 32; timeCost = 3; parallelism = 4;

Output as JSON:

abcrypt information -j data.txt.abcrypt | jq

Output:

{
  "memoryCost": 32,
  "timeCost": 3,
  "parallelism": 4
}

Generate shell completion

--generate-completion option generates shell completions to standard output.

The following shells are supported:

  • bash
  • elvish
  • fish
  • nushell
  • powershell
  • zsh

Example:

abcrypt --generate-completion bash > abcrypt.bash

Command-line options

Please see the following:

Source code

The upstream repository is available at https://github.com/sorairolake/abcrypt.git.

The source code is also available at:

Changelog

Please see CHANGELOG.adoc.

Contributing

Please see CONTRIBUTING.adoc.

Home page

https://sorairolake.github.io/abcrypt/

License

Copyright (C) 2022 Shun Sakai (see AUTHORS.adoc)

  1. This program is distributed under the terms of the GNU General Public License v3.0 or later.
  2. Some files are distributed under the terms of the Creative Commons Attribution 4.0 International Public License.

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.

Dependencies

~7–17MB
~236K SLoC