sstool - Secret::Simple sstool command line tool
This document describes Secret::Simple sstool version 0.11
Usage: sstool [options] [decrypt|encrypt] [ciphertext] Options: -f keyfile use specified file as key -F keyfile_b64 use specified file as (base 64 enc) key -h help (this display) -i infile specify input file -I infile_b64 specify input file (base 64 enc contents) -k use multi-line STDIN for key -K use multi-line STDIN for (base 64 enc) key -o outfile specify output file -0 outfile_b64 specify output file (base 64 enc contents) -p use one-line STDIN as key -P use one-line STDIN as (base 64 enc) key * Key values and plaintext must be input from a file or STDIN. Any STDIN key value will be expected before STDIN plain or ciphertext. A STDIN key option (-k or -p) and the -f file key option may be used together to specify a combined key, STDIN key first. * A dash (-) can be substituted for any filename to have the input or output be from STDIN or STDOUT respectively. By default encrypt will expect one line of raw STDIN text, and decrypt will expect either a Base 64 encoded command-line argument or one line of encoded STDIN.
The sstool command line utility complements the Secret::Simple module by simplifying creation and manipulation of encrypted data.
sstool
Secret::Simple
Decrypt encoded ciphertext using default key:
% sstool decrypt 'zzpjnDlUqz3+KCke5Rr4dA=='
Encrypt plaintext using specified file as key:
% sstool -f ~/secret.key encrypt jblow^password
Adam G. Foust, <nospam-agf@cpan.org>
Copyright (c) 2006, Adam G. Foust. All rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Secret::Simple, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Secret::Simple
CPAN shell
perl -MCPAN -e shell install Secret::Simple
For more information on module installation, please visit the detailed CPAN module installation guide.