从强名称文件中提取私钥?
正如标题所述,有谁知道如何从 snk 文件中提取私钥?我们希望使用 StrongName 的私钥来进行加密。我读到:
http://msdn.microsoft.com/en-us /library/k5b5tt23(VS.80).aspx sn -o key.snk 将提取私钥/公钥(如果文件中存在),但我尝试了它,它只是一个长 CSV 格式的字符串,没有区分什么是私钥和什么是公钥。
As the title states, does anyone know how to extract the private key from an snk file? We want to use the private key from the StrongName for encryption purposes. I read in:
http://msdn.microsoft.com/en-us/library/k5b5tt23(VS.80).aspx that sn -o key.snk will extract both the private/public key if they exist in the file but i tried it and its just a long CSV formatted string with no distinction between what is the private key and what is the public key.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在您链接的文档中,-o 标志旁边显示:
您确定文件中有私钥吗?
您可以运行
sn -p key.snk
来获取公钥,并将其与sn -o key.snk
的输出进行比较 - 如果它们相同,则key文件只有公钥,如果没有,区别就是私钥。In the document you link, next to the -o flag, it says:
Are you certain there is a private key in the file?
You can run
sn -p key.snk
to get the public key, and compare that to the output ofsn -o key.snk
- if they are the same, the key file only has a public key, if not, the difference is the private key.