1
0
Fork 0
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:
Adrien Waksberg 2017-02-11 11:24:12 +01:00
parent 06c876861b
commit a1a21f9617

View file

@ -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)