evgenyneu / keychain-swift

Helper functions for saving text in Keychain securely for iOS, OS X, tvOS and watchOS.
MIT License
2.85k stars 345 forks source link

Add AccessControl support to KeychainSwift #191

Open bakhshaei opened 6 months ago

bakhshaei commented 6 months ago

Hello, In this PR, KeyhainSwift now support SecAccessControlCreateFlags, which is described here. A best practice of this feature is described

Best Practice: Apple recommends using this feature to securely store items in the keychain and ensure they are only accessible when the user is present. Detailed guidance can be found here in Apple documentation.

Summary

I have personally used this feature in various projects for years and thought it would be beneficial to contribute it here. I hope you find this addition useful and valuable for the community. ❤️

evgenyneu commented 6 months ago

Thanks for your work, but I'm not accepting new features.