Fix passphrase issue
This commit is contained in:
parent
a62792bd11
commit
1e1d6f0f44
2 changed files with 8 additions and 3 deletions
|
|
@ -105,9 +105,9 @@ public class PGPAgent {
|
|||
// Get the PGP key passphrase.
|
||||
var passphrase = ""
|
||||
if previousDecryptStatus == false {
|
||||
passphrase = requestPGPKeyPassphrase("default")
|
||||
passphrase = requestPGPKeyPassphrase("")
|
||||
} else {
|
||||
passphrase = keyStore.get(for: Globals.pgpKeyPassphrase) ?? requestPGPKeyPassphrase("default")
|
||||
passphrase = keyStore.get(for: AppKeychain.getPGPKeyPassphraseKey(keyID: "")) ?? requestPGPKeyPassphrase("")
|
||||
}
|
||||
// Decrypt.
|
||||
guard let result = try pgpInterface!.decrypt(encryptedData: encryptedData, keyID: nil, passphrase: passphrase) else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue