Ignore .gpg-id for encryption
This commit is contained in:
parent
011762c4bd
commit
f539d2ccfc
1 changed files with 5 additions and 1 deletions
|
|
@ -720,7 +720,11 @@ public class PasswordStore {
|
||||||
public func encrypt(password: Password, keyID: String? = nil) throws -> Data {
|
public func encrypt(password: Password, keyID: String? = nil) throws -> Data {
|
||||||
let encryptedDataPath = storeURL.appendingPathComponent(password.url.path)
|
let encryptedDataPath = storeURL.appendingPathComponent(password.url.path)
|
||||||
let keyID = keyID ?? findGPGID(from: encryptedDataPath)
|
let keyID = keyID ?? findGPGID(from: encryptedDataPath)
|
||||||
return try PGPAgent.shared.encrypt(plainData: password.plainData, keyID: keyID)
|
if Defaults.isIgnoreGPGIDOn {
|
||||||
|
return try PGPAgent.shared.encrypt(plainData: password.plainData)
|
||||||
|
} else {
|
||||||
|
return try PGPAgent.shared.encrypt(plainData: password.plainData, keyID: keyID)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public func removeGitSSHKeys() {
|
public func removeGitSSHKeys() {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue