#file-encryption #otp #cli #one-time-pad

bin+lib onetime-cli

Encrypt / decrypt files using the one-time pad

5 releases (3 breaking)

0.4.1 Oct 27, 2023
0.4.0 Jul 9, 2023
0.3.0 Feb 11, 2023
0.2.0 Jan 2, 2023
0.1.0 Jan 1, 2023

#1073 in Command line utilities

Download history 35/week @ 2024-02-15 20/week @ 2024-02-22 1/week @ 2024-02-29

56 downloads per month

MIT license

27KB
532 lines

Onetime-cli

Crates.io Docs.rs Crates.io Github.com Github.com

Encrypt / decrypt files using the one-time pad.

Install

If you have cargo installed, run:

cargo install onetime-cli

Otherwise you can download an executable from the Release section.

Usage

The simplest way to encrypt a file called secret.txt is:

onetime-cli encrypt secret.txt

which will generate two new files secret.txt.otp.0 and secret.txt.otp.1. You can then delete secret.txt.

To decrypt secret.txt, run:

onetime-cli decrypt secret.txt

which will use the two secret.txt.otp.* files to decrypt secret.txt. You can then delete these two files.

To see more possible cli arguments, run:

onetime-cli --help

Dependencies

~1.5MB
~21K SLoC