Module zut.gpg

GPG utils, including manipulation of passwords managed by pass (see: https://www.passwordstore.org/).

See also other implementations: - keyring-pass (v0.9.3, 2024-03-08): https://github.com/nazarewk/keyring_pass - keyrings.unixpass (v0.0.2, 2022-08-08): https://gitlab.com/chrooti/keyrings.unixpass - keyrings.passwordstore (v0.1.0, 2021-01-04): https://github.com/stv0g/keyrings.passwordstore

Functions

add_arguments(parser)

ensure_gpg_key([key])

Ensure the given gpg key (by default: pass GPG key) is available in the GPG agent.

get_pass(name[, default])

get_pass_gpg_id()

get_pass_list()

get_pass_path(name)

gpg_encrypt(file, *[, recipient, output, ...])

handle()

Manipulate passwords managed by pass, the "standard UNIX password manager", based on GPG.

insert_pass(name, password)

open_gpg_encrypted(file[, password, ...])

Open a GPG encrypted file.

open_pass(file, password_name[, buffering, ...])

Open a file encrypted using pass with the given password name.

remove_pass(name)

Remove a password.