I've imported the Swift example and run it on one of the ciphertexts from the README file. The decrypt function always returns authTagValidation error.
I'm using Swift 5, imported SwiftGCM and CommonCrypto.
Example test code:
func testSjclEncrypt() {
let test = "5EmCwwSWj6YYgxBlld6DFW8I+QXCWxz5g/laEwUYV/DuoCGvxbW4ZlMd1Tsj4N07WbBOhIJU"
do {
let decrypted = try AES256.decryptString(ciphertext: test, password: "OziaxPFGYh")
print("decrypted: \(decrypted)")
} catch (let error) {
print("this is error: \(error)")
}
}
I've imported the Swift example and run it on one of the ciphertexts from the README file. The decrypt function always returns authTagValidation error.
I'm using Swift 5, imported SwiftGCM and CommonCrypto.
Example test code: