The documentation for the Keychain Services API leaves a bit to be desired. One thing that I can\'t seem to locate are details on accessing the Secure Notes that the Keycha
I figured out that you can pull the data using the security command line tool. Secure notes are stored as generic passwords with the following characteristics:
class: "genp"
- this is the same as a generic password
type
- you can use this to identify secure notes specifically when searching (using the -C flag).
desc
- I don't know that you can search based on this field but it definitely identifies the item as a secure note
0x00000007
- I don't know if you can get this via the API but you can definitely get it from the command line tool
acct
- This seems to be a common characteristic of secure notes
Use the command security dump-keychain
to find all kinds of useful info about the keychain items.