使用实例:
private string urlPath = "";
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
urlPath = Server.MapPath("~/file/");
encryptInfo();
}
}
/// <summary>
/// 字符串加密解密
/// </summary>
使用实例:
private string urlPath = "";
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
urlPath = Server.MapPath("~/file/");
encryptInfo();
}
}
/// <summary>
/// 字符串加密解密
/// </summary>
public class CryptoUtil
{
//随机选8个字节既为密钥也为初始向量
private static byte[] KEY_64 = { 42, 16, 93, 156, 78, 4, 218, 32 };
private static byte[] IV_64 = { 55, 103, 246, 79, 36, 99, 167, 3 };