C# Class System.EncryptHelper

加密辅助类,该类里面皆为string的拓展方法
FileName: EncryptHelper.cs CLRVersion: 4.0.30319.18444 Author: Devin DateTime: 2016/1/15 17:36:59 GitHub: https://github.com/v5bep7/Utility
Datei anzeigen Open project: v5bep7/Utility

Public Methods

Method Description
ClearUp ( string str ) : string

反混淆字符串

DecryptStr ( this str, string key = "s?]8!sj;d" ) : string

解密字符串

Encrypt ( this str, string key = "h%12D;](6" ) : string

基于MD5和秘钥的加密算法

EncryptStr ( this str, string key = "s?]8!sj;d" ) : string

加密(可逆,不固定)

Md5Encrypt ( this str ) : string

MD5加密

MixUp ( string str ) : string

混淆字符串

Method Details

ClearUp() public static method

反混淆字符串
public static ClearUp ( string str ) : string
str string this
return string

DecryptStr() public static method

解密字符串
public static DecryptStr ( this str, string key = "s?]8!sj;d" ) : string
str this this
key string 秘钥
return string

Encrypt() public static method

基于MD5和秘钥的加密算法
public static Encrypt ( this str, string key = "h%12D;](6" ) : string
str this this
key string 秘钥
return string

EncryptStr() public static method

加密(可逆,不固定)
public static EncryptStr ( this str, string key = "s?]8!sj;d" ) : string
str this this
key string 秘钥
return string

Md5Encrypt() public static method

MD5加密
public static Md5Encrypt ( this str ) : string
str this this
return string

MixUp() public static method

混淆字符串
public static MixUp ( string str ) : string
str string this
return string