Change logic of passphrass for multikeys
This commit is contained in:
parent
e9c5b63c4b
commit
eb6e854d92
15 changed files with 95 additions and 99 deletions
|
|
@ -43,4 +43,16 @@ public class AppKeychain: KeyStore {
|
|||
public func removeAllContent() {
|
||||
try? keychain.removeAll()
|
||||
}
|
||||
|
||||
public func removeAllContent(withPrefix prefix: String) {
|
||||
for k in keychain.allKeys() {
|
||||
if k.hasPrefix(prefix) {
|
||||
try? keychain.remove(k)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public static func getPGPKeyPassphraseKey(keyID: String) -> String {
|
||||
Globals.pgpKeyPassphrase + "-" + keyID
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue