且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在C#中的字节数组密码

更新时间:2023-11-15 18:37:10

这是什么有时也被称为作为craptography',因为它提供的安全,同时在保护什么功能无用的错觉。如果你想要做正确的密码,因为它是非常困难的使用框架类的,推出自己的

This is what is sometimes known as 'craptography', because it provides the illusion of security while being functionally useless in protecting anything. Use the framework classes if you want to do cryptography right, because it's extremely difficult to roll your own.

看看本作的意见对你正在尝试做的(加密/解密) - 的 http://msdn.microsoft.com/en-us/library/e970bs09.aspx 。真的是你的要求应该确定您决定使用哪些类。这有很好的背景: http://msdn.microsoft.com/en-us/library/92f9ye3s.aspx

Take a look at this for advice on what you are trying to do (encrypt/decrypt) - http://msdn.microsoft.com/en-us/library/e970bs09.aspx. Really your requirements should determine what classes you decide to use. This has good background: http://msdn.microsoft.com/en-us/library/92f9ye3s.aspx

对于简单的加密/解密(如果这是你所需要的)的DPAPI 的可以是最简单的方法。

For simple encrypt/decrypt (if this is what you need) DPAPI may be the simplest way.