将密码密钥存储在密钥容器中 [英] Store cryptography Key in key container

查看:123
本文介绍了将密码密钥存储在密钥容器中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的所有人,



我创建了一个密钥,我们可以在一个月内更改一次,现在我想在微软密钥容器中存储自己的64位密钥。所以请帮我一试。



如果我们使用CspParameters类,它会自动生成密钥并在给定容器中存储由用户提供的容器名称然后如何从容器获取实际密钥到加密。



实际上我们使用对称密钥加密的登录验证。



请帮助我们,我们已经花了超过同一个任务超过一周。



感谢高级!

Dear All,

I have created key which can we change once in a month, Now I want to store own 64 bit key in microsoft key container. So please help me out for the same.

If we use CspParameters class it automatic generate key and store in given container which name of container provide by the users then how to get actual key from container to encryption.

Actually we are using login authentication with symmetric key cryptography.

Please help us , We already spend more then a week over the same Task.

Thank in advanced!

推荐答案

你为什么想要?要做到这一点?看起来很尴尬,就像你试图强迫自己的意志微软的工具等。这就是为什么你真的不应该做你所要求的。如果您查看Microsoft密钥容器,它看起来像。





Why would you want to do that? It seems awkward like you're trying to force your own will on Microsoft's tools etc. Here's why you really shouldn't do what you're asking. If you look at the Microsoft key container it looks like.


<rsakeyvalue>  <modulus>uec452qwyOCbMW4ZSCNGGotjT14N54RqxsxGO9w4oVANyoeV87H9HfyjQTZGvDRAp2BOWnDHhvHfv37MHzhBvr8YkP9RNrsipHVvfp2zpLaSTU5upEz3KFZVbPL9WNiGPC7apuD+5Ic63KQlt/PCEb12KQO4BiIxzFjEkAeBXPE=
</modulus>
<exponent>AQAB</exponent>
<p>/MJX1FKEMl3JXJ7ZudNJOZEFwbgXQ6MOgSIgEwyBSU6FBni8TABKNIXLXvBGV3wO2WgmSlnpVYywbalKmldQ==
</p>
<q>vEluYi8BqLPKIavcKPeyO3ScVYCDiljGYQPG7U80l6dtftMCP28+Sp+p+1fy86ZgIECQTDJsLMm9G8rulDdeDQ==</q>
<dp>B3lvw3WVNzAjTNYv1AEvBNJSXSP06ouNlgGgT7rxF7ncF9AUJ/G1dxGPYebw9OEUuQ3Nj5mOVDwyXf6b5B2IKQ==</dp>
<dq>kl63S+Zk8MPLd7+FZ+eei6/MNH+yQmNe3F42T5cKOHa0nSnmDnApSZOzbaviN1z4TzpBsqpkA7FUrH1mWJxuJQ==</dq>
<inverseq>SgbeDWewNx8pyk4hH4QlvvXkayO6UWx1ODlxkAG1GXnrFF7E/8L7epmK5C0jdP3k0eIg3grfX0JMqgZR0DdoyA==</inverseq>
<d>Ui9rk7syDoxlb7PZz29wtZl7vQG6qeh7gAmc3yfbjU0j266XV1YPrasbzV+eY+PB1X0ZBpinTPwvS6xVt1OalGNRUnD2iJ51VnAKhnZx1OpJtIQmROzhar7UN8HY7EsFHzLUKHW9wu/9T330Yy8mG7RjzT4JpJuhqfC0QMD5KLE=</d>
</rsakeyvalue>





所以基本上你想要的是你要求你能够把你自己的密钥放在那里,并让微软计算出所有这些理论上可能算法的值。但是,您可能会遇到没有密码强大的密钥的风险。



这里真正的问题是什么?我想不出为什么微软给你的密钥不够强大的原因。如果您真的打算使用自己的密钥,那么您应该创建自己的密钥并安全地存储它们,数据库,ACL文件列表等。这实际上是Microsoft Key容器为您提供的所有保护。 Microsoft密钥容器确实没有为您提供开箱即用的增强级别的保护,而您自己无法做到这一点。如果您打算使用自己的密钥,那么也许您应该自己动手。如果您只是要求每月更换密钥,则还有其他解决方案。



So essentially you want you're asking is for you to be able to put your own key in there and have Microsoft calculate out all these values which, in theory the algorithms probably could. However then you run the risk of not having a key which is cryptographically strong enough.

What's the real ask here? I can't think of a reason why the keys' that Microsoft gives you wouldn't be strong enough. If you really are intent on using your own keys then you should be creating your own keys and "storing" them securely, database, ACL'd file list etc. Which is really all the protection the Microsoft Key container gives you. The Microsoft key container really doesn't give you an enhanced level of protection out of the box that you couldn't do yourself. If you're intent on using your own keys, then perhaps you should be doing it yourself. If you're only requirement is to change your keys monthly there are other solutions.


这篇关于将密码密钥存储在密钥容器中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆