Secure enclave and keychain


My notes on secure enclave and KeyChain

Gotchas:

  • Secure enclave is great for encrypting cipher texts
  • KeyChain is great for saving simple data such as dictionaries
  • You can store NSData in KeyChain (JSON -> NSData -> KeyChain)
  • CryptoKit is a more modern and easy to use kit to deal with secure enclave (although limited in features?)
Secure enclave
KeyChain
CryptoKit
Other:
Keychain wrappers:

https://github.com/beatlabs/BeatChain
https://github.com/granoff/Strongbox
https://github.com/evgenyneu/keychain-swift/
https://github.com/endocrimes/Latch
https://github.com/jrendel/SwiftKeychainWrapper
https://github.com/kishikawakatsumi/KeychainAccess