[原创]C#文本加密
MD5加密
1 | public string GetMD5(string sDataIn) |
SHA1加密
1 | public string GetSHA1(string data) |
SHA256加密
1 | public string GetSHA256(string data) |
SHA384加密
1 | public string SHA384Encrypt(string data) |
SHA512加密
1 | public string GetSHA512(string strData) |
Base64加密
1 | public string Base64Encode(Encoding encodeType, string source) |
DES加密
1 | public static string DESEncrypt(string originalValue, string key, string iv) |
DES解密
1 | public static string DESDecrypt(string encryptedValue, string key, string iv) |
AES加密
1 | public string AESEncrypt(string encryptStr, string encryptKey) |
AES解密
1 | public string AESDecrypt(string decryptStr, string decryptKey) |