#rsa-key #command-line #command-line-tool #secret #data #encryption #little

app credman

A little command line tool based on RustCrypto: RSA library

2 unstable releases

new 0.2.0 Feb 12, 2025
0.1.0 Oct 25, 2023

#835 in Cryptography

Download history 2/week @ 2024-11-03 112/week @ 2025-02-09

112 downloads per month

MIT license

9KB
103 lines

Credman

A little command line tool based on RustCrypto: RSA library

Usage

To encrypt your secret just do

credman --input-data "My secret" --regenerate-priv-key

this will produce multiple files, including encrypted data, the private key in postcard and pem format Without the --regenerate-priv-key, Credman would crash due to the fact, there is no private key file given.

For more help, please call credman --help.

Motivation

I just wanted to create a RSA-Key as a binary blob, which I can include via include_bytes! macro. Credman is the outcome and may be seen as feature complete. Nevertheless improvements are welcome.

Possible Improvements

  • Write some command line tests
  • Introduce a state machine to cover e.g. a given public key only
  • introduce other serde serializers and switch via command line paramter, maybe also configurable as package feature

Dependencies

~6MB
~116K SLoC