-
Notifications
You must be signed in to change notification settings - Fork 348
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added item class feature #95
base: master
Are you sure you want to change the base?
Conversation
Thanks for the update @Oleygen. What motivated you to add this feature? |
I'm using your lib in my app. I need to store RSA private key on a device, and I've noticed that all items are stored as password, which is not correct for my case |
Did you need to store your key as kSecClassCertificate? |
Yes, exactly |
Is saving text as kSecClassCertificate different than saving it as kSecClassGenericPassword? |
|
In what "way", sorry? And why does it matter?
The documentation says
So I guess, the text stored as kSecClassCertificate won't be encrypted in the keychain. Why is it important to store things without encryption? |
here is keychain UI block: https://imgur.com/a/BNjyRNa as you can see, password, certs and keys are separated. How do you think do you need this changes for your repo? Cause I'd like to be fully correct in my apps. |
No, sorry. While specifying keychain classes will be useful to some users of the library, I am not sure this is something that majority of users of this library care about. I don't think it is worth increasing the complexity of the library to introduce this feature. The only point of this library is to save text to keychain without caring about details. There are many alternative full-featured Keychain libraries that people can choose if they need extra features.
Cool, could you explain what is this change about and your motivation before implementing it? |
Adding possibility to set a class for items to set/get/delete/clear. Backwards compatibility reached by using default parameter (genericPassword).
Please check is this pull request is valuable for your library, and notify me if it needs any improvement or I've missed some caveats.
Please note: There is missing objective-c compatibility changes, and mb some other files should be modified (you can help if specify what may I missed)