mirror of
https://github.com/nishiki/manage-password.git
synced 2025-02-21 10:20:05 +00:00
fix private style
This commit is contained in:
parent
8cd7b6e583
commit
18ba72e91b
2 changed files with 4 additions and 3 deletions
|
@ -93,8 +93,9 @@ class Item
|
||||||
false
|
false
|
||||||
end
|
end
|
||||||
|
|
||||||
# Generate an random id
|
|
||||||
private
|
private
|
||||||
|
|
||||||
|
# Generate an random id
|
||||||
def generate_id
|
def generate_id
|
||||||
([*('A'..'Z'), *('a'..'z'), *('0'..'9')]).sample(16).join
|
([*('A'..'Z'), *('a'..'z'), *('0'..'9')]).sample(16).join
|
||||||
end
|
end
|
||||||
|
|
|
@ -330,9 +330,10 @@ class MPW
|
||||||
result
|
result
|
||||||
end
|
end
|
||||||
|
|
||||||
|
private
|
||||||
|
|
||||||
# Decrypt a gpg file
|
# Decrypt a gpg file
|
||||||
# @args: data -> string to decrypt
|
# @args: data -> string to decrypt
|
||||||
private
|
|
||||||
def decrypt(data)
|
def decrypt(data)
|
||||||
return nil if data.to_s.empty?
|
return nil if data.to_s.empty?
|
||||||
|
|
||||||
|
@ -345,7 +346,6 @@ class MPW
|
||||||
|
|
||||||
# Encrypt a file
|
# Encrypt a file
|
||||||
# args: data -> string to encrypt
|
# args: data -> string to encrypt
|
||||||
private
|
|
||||||
def encrypt(data)
|
def encrypt(data)
|
||||||
recipients = []
|
recipients = []
|
||||||
crypto = GPGME::Crypto.new(armor: true, always_trust: true)
|
crypto = GPGME::Crypto.new(armor: true, always_trust: true)
|
||||||
|
|
Loading…
Add table
Reference in a new issue