granoff / Lockbox

Objective-C utility class for storing data securely in the key chain.
MIT License
847 stars 87 forks source link

Delete item. #31

Closed Foriger closed 10 years ago

Foriger commented 10 years ago

Hi, I am curious about something.Why there are no methods about deleting Item from keychain?Is there any particular reason about this?

granoff commented 10 years ago

The capability exists to delete items, by explicitly setting the key's value to nil, for example:

BOOL result = [Lockbox setString:nil forKey:@"Password"];

Specific delete methods would be a convenience, I suppose, but would then also add a bunch of interfaces which frankly, would just call the appropriate setXxx method. :-)

Foriger commented 10 years ago

I understand. Thanks @granoff.