Istar-Eldritch / crypto

CLI tool and library for easy cryptography.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

USAGE:
    crypto [FLAGS] --password <password> [INPUT]

FLAGS:
    -d, --decrypt    Decrypts the input
    -h, --help       Prints help information
    -V, --version    Prints version information

OPTIONS:
    -p, --password <password>    The encryption password [env: CRYPTO_PWD=]

ARGS:
    <INPUT>

Examples

Environment variables

Use an environment variable instead of the -p argument

CRYPTO_PWD=$(pass mypass) crypto secret

Strings

Encrypt a string

crypto -p passwd secret

Decrypt a string

crypto -p passwd -d EAAAAAAAAAAuF8Z9UL2+1VYLOC24x+ppEAAAAAAAAADLYU9zTtqyLwb7mbiGhUSS

Binary data

Encrypt

cat file.zip | crypto -p secret > file.zip.crypt

Decrypt

cat file.zip.crypt | crypto -p secret -d > file.zip

About

CLI tool and library for easy cryptography.


Languages

Language:Rust 100.0%