Keychain Services Secure Notes

后端 未结 3 2032
借酒劲吻你
借酒劲吻你 2020-12-30 16:49

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

3条回答
  •  春和景丽
    2020-12-30 17:11

    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="note" - you can use this to identify secure notes specifically when searching (using the -C flag).

    desc="secure note" - I don't know that you can search based on this field but it definitely identifies the item as a secure note

    0x00000007 = "Note name" - 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.

提交回复
热议问题