摘要: 1 using System; 2 using System.Security.Cryptography; 3 using System.Text; 4 using System.IO; 5 6 namespace AES 7 { 8 public class AESEncryption 9 { 10 private static string strKey = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"; 11 /// 12 /// AES加密算法 13 ///... 阅读全文
posted @ 2013-11-21 15:22 comeonfyz 阅读(581) 评论(0) 推荐(0)
摘要: 1 /// 2 /// 记录日志 3 /// 4 /// 5 protected void EndThing(string msg) 6 { 7 string DirPath = ApplicationPath + @"\Log\" + DateTime.Now.ToString("yyyyMMdd") + @"\"; 8 if (!Directory.Exists(DirPath))//如果不存在就创建file文件夹 9 {1... 阅读全文
posted @ 2013-11-21 15:17 comeonfyz 阅读(335) 评论(0) 推荐(0)
摘要: 1 private static int ExecuteMSSql(DbInfo db, string sqlPath) 2 { 3 Console.WriteLine("================================================================="); 4 Console.WriteLine("==========当前执行的mssql脚本:"+sqlPath); 5 Console.WriteLine("=====================... 阅读全文
posted @ 2013-11-21 15:12 comeonfyz 阅读(738) 评论(0) 推荐(0)