Secret - Manual page

Secret homepage

Quick links

Manual

Changes

Latest stable release is 0.9. It was released 2019-07-08.

NAME

Secret - command line file encryption program

SYNOPSIS

secret [FLAGS] <OPTIONS>

DESCRIPTION

Secret is a command line file encryption program for Unix-like operating systems.

OPTIONS

-e <path>

Encrypt file

-d <path>

Decrypt file

-E <path>

Encrypt all files in directory

-D <path>

Decrypt all files in directory

-r <path>

Encrypt all files in directory recursively

-R <path>

Decrypt all files in directory recursively

-h

Show short help and exit

-V

Show version number of program and exit

FLAGS

-k

Keep original files(s). When this flag is set on encryption plain files are kept on the disk. On decryption, encrypted files are kept on the disk.

EXAMPLES

Encrypt single file:   secret -e "/path/to/file"

Decrypt single file:   secret -d "/path/to/file.secret"

Encrypt files in directory and keep plain files:   secret -k -E "/path/to/directory"

Decrypt files in directory and remove encrypted files:   secret -D "/path/to/directory"

If you create file $HOME/.secretrc with content:   MASTER_PASSWORD=yourpassword

Secret will use that password instead of prompting one. This is useful for automatically encrypting files for backup purposes. You could have your backup script running in the background and before copying the files to a remote server (e.g rsync) you could let Secret to encrypt the files.

NOTES

Secret will complain if $HOME/.secretrc is found and has permissions more than 0600. You should do chmod 600 $HOME/.secretrc.

Secret also looks for XDG_CONFIG_HOME and if set assumes that the .secretrc is there.

FILES

$HOME/.secretrc

AUTHORS

Written by Niko Rosvall.

COPYRIGHT

Copyright (C) 2019 Niko Rosvall <niko@byteptr.com>

Released under MIT license.


Copyright © Niko Rosvall 2019
Follow on Twitter
Made in Finland