Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Default kSecAttrAccessible value for keychain items?

Does anyone know the default value of the kSecAttrAccessible attribute for iOS keychain items (see reference)? I'm just now upgrading an app to use stricter security, and I'm curious about how accessible my old keychain items–which didn't specify the kSecAttrAccessible key-value pair–are.

like image 704
kevboh Avatar asked Mar 22 '11 14:03

kevboh


1 Answers

Update: As of a few years ago, the default is now kSecAttrAccessibleWhenUnlocked.

According to the Session 209 (Securing Application Data) video from last year's WWDC, the existing data defaults to kSecAttrAccessibleAlways (so you'll need to update the accessibility class as necessary).

like image 84
Wevah Avatar answered Oct 27 '22 23:10

Wevah