摘要: DES 加密的一些名词 : 原字符串 加密后字符串 密钥 与 向量1。将原字符串转为 字节数组.使用 UTF8解码。byte[] InputStrArr = System.Text.Encoding.UTF8.GetBytes(InputStr);2.得到密钥与向量的字节数组 都为8位。byte[] key ;byte[] iv;// 创建一个DESDESCryptoServiceProvider des = new DESCryptoServiceProvider();// 创建一个内存流,用来将加密后的字节写入。 MemoryStream ms = new Memor... 阅读全文
posted @ 2012-11-16 17:07 easyfrog 阅读(472) 评论(0) 推荐(0) 编辑
摘要: 连接字条串: "server = xxx.gotoip.net,1435;database = theTable;uid = xxxxx;pwd = xxxxx"选择 : select * from theTable select xxx,xxx,xxx, from theTable where xx = 'xxxx' or xx like '%xx%'增加 : Insert into theTable (xxx,xxx,xxx) values (xxx,xxx,xxx)修改 : update theTabel set xxx = ' 阅读全文
posted @ 2012-11-16 13:51 easyfrog 阅读(385) 评论(0) 推荐(0) 编辑