remove overload, caller can take care of it in 2 step process
This commit is contained in:
parent
e32402b807
commit
566b7253f5
2 changed files with 4 additions and 8 deletions
|
|
@ -403,13 +403,6 @@ public class PasswordStore {
|
|||
return Password(name: passwordEntity.name, path: passwordEntity.path, plainText: plainText)
|
||||
}
|
||||
|
||||
public func decrypt(path: String, keyID: String? = nil, requestPGPKeyPassphrase: @escaping (String) -> String) throws -> Password {
|
||||
guard let passwordEntity = fetchPasswordEntity(with: path) else {
|
||||
throw AppError.decryption
|
||||
}
|
||||
return try decrypt(passwordEntity: passwordEntity, keyID: keyID, requestPGPKeyPassphrase: requestPGPKeyPassphrase)
|
||||
}
|
||||
|
||||
public func encrypt(password: Password, keyID: String? = nil) throws -> Data {
|
||||
let keyIDs: [String] = {
|
||||
if let keyID {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue