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>
Use an environment variable instead of the -p
argument
CRYPTO_PWD=$(pass mypass) crypto secret
Encrypt a string
crypto -p passwd secret
Decrypt a string
crypto -p passwd -d EAAAAAAAAAAuF8Z9UL2+1VYLOC24x+ppEAAAAAAAAADLYU9zTtqyLwb7mbiGhUSS
Encrypt
cat file.zip | crypto -p secret > file.zip.crypt
Decrypt
cat file.zip.crypt | crypto -p secret -d > file.zip