Skip to content

Command reference

wancom edited this page Nov 23, 2022 · 2 revisions

Encryption/Decryption operations

Encryption

Encrypt the file.
SRC: source file to encrypt.
DST: destination for encrypted file. Keylist file is also stored as dst.keylist.
MEMBER: users with permission who can decrypt and update the file.

shenc enc SRC [DST] MEMBER

Decryption

Decrypt the file.
KEYLIST: keylist file. The file can be omitted if already registered.
SRC: encrypted file to decrypt.
DST: destination for decrypted file.

shenc dec [KEYLIST] SRC [DST]

Public Key Operations

List

Show the public keys which are registered.

shenc pub list

Add

Add new member's public key.
PUBKEY: public key file for new member.
NAME: name for new member.

shenc pub add PUBKEY NAME

Remove

Remove the member's public key.
NAME: the member's name to remove.

shenc pub remove NAME

Usage: shenc [help | version] 

       shenc src [dst] member
       shenc reg keylist
       shenc enc src [dst] member
       shenc dec [keylist] src [dst]
       shenc update base src [dst]
       shenc info src

       shenc pub list
       shenc pub add pubkey name
       shenc pub remove name

Sub command
help        Show help.
version     Show version.
reg         Register key list.
enc         Encrypt src file and save to dst dir with member permission.
dec         Decrypt src file and save to dst dir
update      Update ShEnc file based on base file with src and save to dst dir.
info        Show ShEnc file information.
pub list    Show public key list already registered.
pub add     Add public key to known list.
pub remove  Remove public key from known list.

Clone this wiki locally