Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/einfachirgendwer0815/onetime-cli
Encrypt / decrypt files using the one-time-pad
https://github.com/einfachirgendwer0815/onetime-cli
cli decrypt encrypt onetimepad otp
Last synced: 12 days ago
JSON representation
Encrypt / decrypt files using the one-time-pad
- Host: GitHub
- URL: https://github.com/einfachirgendwer0815/onetime-cli
- Owner: einfachIrgendwer0815
- License: mit
- Created: 2023-01-01T14:01:37.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-12-16T14:04:26.000Z (about 1 year ago)
- Last Synced: 2024-12-17T20:48:19.727Z (about 1 month ago)
- Topics: cli, decrypt, encrypt, onetimepad, otp
- Language: Rust
- Homepage:
- Size: 148 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Onetime-cli
[![Crates.io][crates_img]][crates_lnk]
[![Docs.rs][docs_img]][docs_lnk]
[![Crates.io][dwn_img]][crates_lnk]
[![Github.com][issues_img]][issues_lnk]
[![Github.com][license_img]][license_lnk][crates_img]:https://img.shields.io/crates/v/onetime-cli
[crates_lnk]:https://crates.io/crates/onetime-cli[docs_img]:https://img.shields.io/docsrs/onetime-cli/latest
[docs_lnk]:https://docs.rs/onetime-cli[dwn_img]:https://img.shields.io/crates/d/onetime-cli
[license_img]:https://img.shields.io/crates/l/onetime-cli
[license_lnk]:https://github.com/einfachIrgendwer0815/onetime-cli/blob/main/LICENSE[issues_img]:https://img.shields.io/github/issues/einfachIrgendwer0815/onetime-cli
[issues_lnk]:https://github.com/einfachIrgendwer0815/onetime-cli/issuesEncrypt / decrypt files using the one-time pad.
## Install
If you have cargo installed, run:
```bash
cargo install onetime-cli
```Otherwise you can download an executable from the [Release section](https://github.com/einfachIrgendwer0815/onetime-cli/releases).
## Usage
The simplest way to encrypt a file called `secret.txt` is:
```bash
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:
```bash
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:
```bash
onetime-cli --help
```