scsitape / stenc

SCSI Tape Encryption Manager - stenc (formerly on https://sourceforge.net/projects/stenc/)
GNU General Public License v2.0
70 stars 16 forks source link

Add helper tool to generate the key file #90

Closed sunwire closed 2 years ago

sunwire commented 2 years ago

A simple tool to generate a key for stenc. It uses openssl command to do that.

Usage: stenc-keygen.sh -l 16 -d "key descriptor" -f "key filename.key" Where:

All options are optional. By default key length is 32 bytes, key descriptor is TK + current date (YMD) and time (HMS) (digits only), filename is key descriptor + .key extension.

E.g.

$ stenc-keygen.sh 
Generating the key...
Key filename: TK220616151224.key
$ stenc-keygen.sh -d "June key"
Generating the key...
Key filename: June key.key
$ stenc-keygen.sh -d "June key" -f June.key
Generating the key...
Key filename: June.key
jonasstein commented 2 years ago

however we can improve the man page according to key generation, if you have ideas...