mirror of
https://github.com/nishiki/manage-password.git
synced 2025-02-20 01:50:04 +00:00
mpw: add function list_keys
This commit is contained in:
parent
06c876861b
commit
a1a21f9617
1 changed files with 6 additions and 0 deletions
|
@ -184,6 +184,12 @@ class MPW
|
|||
@passwords[id] = encrypt(password)
|
||||
end
|
||||
|
||||
# Return the list of all gpg keys
|
||||
# rtrn: an array with the gpg keys name
|
||||
def list_keys
|
||||
return @keys.keys
|
||||
end
|
||||
|
||||
# Add a public key
|
||||
# args: key -> new public key file or name
|
||||
def add_key(key)
|
||||
|
|
Loading…
Add table
Reference in a new issue