We used KeychainAccess to store our encryption key in keychain. We encountered bug when upgrading our application Swift version from 4.2 to 5.0 the key dissapeared from keychain.
let keychain = Keychain(service: serviceId)
var key = Data(count: 64)
_ = key.withUnsafeMutableBytes { bytes in
SecRandomCopyBytes(kSecRandomDefault, 64, bytes)
}
try? keychain.set(key, key: keyId)
Hi,
We used KeychainAccess to store our encryption key in keychain. We encountered bug when upgrading our application Swift version from 4.2 to 5.0 the key dissapeared from keychain.