- 12
- 0
- 约5.12千字
- 约 5页
- 2016-01-08 发布于安徽
- 举报
软件敏感数据加密技术
1.用户密码加密:MD5加密
2.数据库连接字符串加密:DES加密
MD5(Message-Digest Algorithm 5,信息-摘要算法System.Security.Cryptography 命名空间下提供了MD5类。
DES算法Data Encryption Standard)为密码体制中的对称密码体制,又被成为美国数据加密标准,是1972年美国IBM公司研制的对称密码体制加密算法。System.Security.Cryptography 命名空间下提供了DESCryptoServiceProvider 类(定义访问数据加密标准 (DES) 算法的加密服务提供程序 (CSP) 版本的包装对象)。
我们可以去封装一个类库,提供MD5加密、DES加密、DES解密。
using System;
using System.Collections.Generic;
using System.Text;
using System.IO;
using System.Security.Cryptography;
namespace EncAndDecClass
{
public class EncAndDec
{
const string KEY_64 = ;//注意了,是8个字符,64位
const str
原创力文档

文档评论(0)