钥匙串服务安全说明 [英] Keychain Services Secure Notes
问题描述
Keychain Services API的文档还有一些不足之处.我似乎找不到的一件事是有关访问钥匙串访问"应用程序可让您添加和编辑的安全说明的详细信息.
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 Keychain Access app lets you add and edit.
任何见识将不胜感激.谢谢.
Any insight would be much appreciated. Thanks.
推荐答案
我发现可以使用安全命令行工具提取数据.安全便笺以具有以下特征的通用密码存储:
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"
-与通用密码相同
type<uint32>="note"
-您可以使用它来识别安全注释,特别是在搜索时(使用-C标志).
type<uint32>="note"
- you can use this to identify secure notes specifically when searching (using the -C flag).
desc<blob>="secure note"
-我不知道您可以根据此字段进行搜索,但它肯定会将项目标识为安全笔记
desc<blob>="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 <blob>= "Note name"
-我不知道您是否可以通过API来获取此信息,但是您绝对可以从命令行工具中获取它
0x00000007 <blob>= "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<blob>=<NULL>
-这似乎是安全票据的普遍特征
acct<blob>=<NULL>
- This seems to be a common characteristic of secure notes
使用命令security dump-keychain
查找有关钥匙串项目的各种有用信息.
Use the command security dump-keychain
to find all kinds of useful info about the keychain items.
这篇关于钥匙串服务安全说明的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!