Skip to content

Commit

Permalink
IOS-2816 Don't output data in sha256
Browse files Browse the repository at this point in the history
  • Loading branch information
megakoko committed Jan 11, 2023
1 parent 68eab5c commit ee50dc8
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@ public class BiometricsStorage {
switch status {
case errSecSuccess:
guard let data = result as? Data else {
Log.debug("BiometricsStorage \(account) get - no data")
Log.debug("BiometricsStorage \(account) get - data nil")
return nil
}

Log.debug("BiometricsStorage \(account) get - fetched data \(data.getSha256().hexString)")
Log.debug("BiometricsStorage \(account) get - data not nil")
return data
case errSecItemNotFound:
Log.debug("BiometricsStorage \(account) get - not found")
Expand All @@ -56,7 +56,7 @@ public class BiometricsStorage {
}

public func store(_ object: Data, forKey account: String, overwrite: Bool = true, context: LAContext? = nil) throws {
Log.debug("BiometricsStorage \(account) set - setting data \(object.getSha256().hexString)")
Log.debug("BiometricsStorage \(account) set - setting data")
let query: [CFString: Any] = [
kSecClass: kSecClassGenericPassword,
kSecAttrAccount: account,
Expand Down

0 comments on commit ee50dc8

Please sign in to comment.