如果模块有修改,则每次修改添加以下注释:
Log编号:
修改作者:
修改日期:
修改描述:
**************************************************************************/
using System.Text;
using System.IO;
using System;
using System.Text.RegularExpressions;
using System.Security.Cryptography;
namespace LHCHIP.Common
...{
/**//// <summary>
/// 对称加密算法类
/// </summary>
public class DecryptEncrypt
...{
/**//// <summary>
/// 返回自身的一个类
/// </summary>
public static DecryptEncrypt MyDecryptEncrypt
...{
get
...{
return new DecryptEncrypt();
}
}
private SymmetricAlgorithm mobjCryptoService;
private string Key;
/**//// <summary>
/// 对称加密类的构造函数
/// </summary>
internal DecryptEncrypt()
...{
mobjCryptoService = new RijndaelManaged();
Key = "rrp(%&h70x89H$jgsfgfsI0456Ftma81&fvHrr&&76*h%(12lJ$lhj!y6&(*jkPer44a";
}
/**//// <summary>
/// 获得密钥
/// </summary>
/// <returns>密钥</returns>
private byte[] GetLegalKey()
...{
string _TempKey = Key;
mobjCryptoService.GenerateKey();
byte[] bytTemp = mobjCryptoService.Key;
int KeyLength = bytTemp.Length;
if (_TempKey.Length > KeyLength)
评论 {{userinfo.comments}}
{{child.content}}
{{question.question}}
提交