【发布时间】:2011-04-24 07:31:46
【问题描述】:
我需要从 Windows 商店导出私钥。如果密钥被标记为不可导出,我该怎么办?我知道有可能,程序越狱可以导出这个密钥。
要导出密钥,我使用从(RSACryptoServiceProvider)cryptoProv.ExportParameters(true) 导出密钥的Org.BouncyCastle.Security.DotNetUtilities.GetKeyPair()。我在 Org.BouncyCastle.Cms.CmsSignedDataGenerator 中用于 CMS 签名的导出密钥。
我需要 .Net 的解决方案,但任何解决方案都会很有用。谢谢。
【问题讨论】:
-
FindPrivateKey.exe util(类似于 CspKeyContainerInfo.UniqueKeyContainerName)可以在“Microsoft\Crypto\RSA\”文件夹中获取私钥文件名。这些文件真的包含私钥吗?如何从这个文件中解密密钥?
标签: .net encryption bouncycastle rsacryptoserviceprovider