摘要:
using System;using System.Collections.Generic;using System.Text;using System.Data;using System.IO;using System.Runtime.Serialization;using System.Runtime.Serialization.Formatters.Binary;namespace BaseClientClass{ public class XMLClass { /**/ /// <summary> /// 此方法实现对Dataset... 阅读全文
摘要:
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Reflection;using System.Data;using System.Data.Common;using System.Web.Script.Serialization;using System.IO;using System.Security.Cryptography;namespace Pub.Class{ public static class EncryptExtensions ... 阅读全文
摘要:
using System;using System.Text;using System.IO;using System.Security;using System.Security.Cryptography;namespace Tgnet.Base.Security{ /**//// <summary> /// 有关Base64编码算法的相关操作 /// </summary> /// <example>如下的示例为对一个字符串进行Base64编码,并返回编码后的字符串: /// <code> /// public string ToBase64. 阅读全文
摘要:
1 、方法一 (不可逆加密) public string EncryptPassword( string PasswordString, string PasswordFormat ) { string encryptPassword = null ; if (PasswordFormat = " SHA1 " ) { encryptPassword = FormsAuthortication.HashPasswordForStoringInConfigFile(PasswordString , " SHA1 " ); ... 阅读全文
摘要:
//名称空间 using System; using System.Security.Cryptography; using System.IO; using System.Text; /**/ /// /// DES算法描述简介: /// DES是Data Encryption Standard(数据加密标准)的缩写。它是由IBM公司研制的一种加密算法, /// 美国国家标准局于1977年公布把它作为非机要部门使用的数据加密标准; /// 它是一个分组加密算法,他以64位为分组对数据加密。 /// 同时DES也是一个对称算法:加... 阅读全文
摘要:
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Reflection;using System.Data;using System.Data.Common;using System.Web.Script.Serialization;using System.IO;using System.Security.Cryptography;namespace Pub.Class{ public static class EncryptExtensions... 阅读全文