HEIMLICH(1) General Commands Manual HEIMLICH(1)

heimlichsecrets manager

heimlich [-aR] [-c column] [-f path] pattern

The heimlich utility retrieves secrets which are are stored in an encrypted file, see heimlich(5). A secret is retrieved and written to stdout by decrypting the file located at path using the entered passphrase and selecting column on the first line that matches pattern.

The options are as follows:

Output all columns.
By default, the passphrase is asked for again in case the previous one is wrong. This option sets the maximum number of attempts to one, causing heimlich to exit non-zero if the wrong passphrase is supplied.
column
Specify the column to select from the line matching pattern. By default, the third column is selected.
path
Path to encrypted file containing secrets.
pattern
Pattern expressed as a basic regular expression used to find the matching line, see re_format(7).

~/.heimlich/$USER.enc
The default encrypted file containing secrets.

The heimlich utility exits 0 on success, and >0 if an error occurs.

heimlich-file(1), heimlich(5), re_format(7)

Anton Lindqvist <anton@basename.se>

July 24, 2020 OpenBSD 7.2