Exemplo n.º 1
0
 public HashEncrypt(HashEncryptType hashType, string originalString, bool useSalt, string saltValue)
 {
     this._mbytHashType       = hashType;
     this._mstrOriginalString = originalString;
     this.mboolUseSalt        = useSalt;
     this.mstrSaltValue       = saltValue;
 }
Exemplo n.º 2
0
 public string Encrypt(string originalString, HashEncryptType hashType, string saltValue)
 {
     this._mstrOriginalString = originalString;
     this._mbytHashType       = hashType;
     this.mstrSaltValue       = saltValue;
     return(this.Encrypt());
 }
Exemplo n.º 3
0
        /// <summary>
        /// 进行非对称加密
        /// </summary>
        /// <param name="originalString">原始字符串</param>
        /// <param name="hashType">加密类型</param>
        public string Encrypt(string originalString, HashEncryptType hashType)
        {
            _mstrOriginalString = originalString;
            _mbytHashType       = hashType;

            return(this.Encrypt());
        }
Exemplo n.º 4
0
 public HashEncrypt(HashEncryptType hashType, string originalString, bool useSalt, string saltValue)
 {
     this._mbytHashType = hashType;
     this._mstrOriginalString = originalString;
     this.mboolUseSalt = useSalt;
     this.mstrSaltValue = saltValue;
 }
Exemplo n.º 5
0
 public HashEncrypt(HashEncryptType HashType, string OriginalString)
 {
     this.mstrSaltValue = string.Empty;
     this.msrtSaltLength = 8;
     this.mbytHashType = HashType;
     this.mstrOriginalString = OriginalString;
 }
Exemplo n.º 6
0
 public HashEncrypt(HashEncryptType HashType, string OriginalString, bool UseSalt, string SaltValue)
 {
     this.mstrSaltValue = string.Empty;
     this.msrtSaltLength = 8;
     this.mbytHashType = HashType;
     this.mstrOriginalString = OriginalString;
     this.mboolUseSalt = UseSalt;
     this.mstrSaltValue = SaltValue;
 }
Exemplo n.º 7
0
 public void Reset()
 {
     this.mstrSaltValue       = string.Empty;
     this._mstrOriginalString = string.Empty;
     this._mstrHashString     = string.Empty;
     this.mboolUseSalt        = false;
     this._mbytHashType       = HashEncryptType.MD5;
     this._mhash = null;
 }
Exemplo n.º 8
0
        /// <summary>
        /// 重置加密设置
        /// </summary>
        public void Reset()
        {
            mstrSaltValue       = String.Empty;
            _mstrOriginalString = String.Empty;
            _mstrHashString     = String.Empty;
            mboolUseSalt        = false;
            _mbytHashType       = HashEncryptType.MD5;

            _mhash = null;
        }
Exemplo n.º 9
0
 public HashEncrypt(HashEncryptType hashType, string originalString)
 {
     this._mbytHashType = hashType;
     this._mstrOriginalString = originalString;
 }
Exemplo n.º 10
0
 public HashEncrypt(HashEncryptType hashType)
 {
     this._mbytHashType = hashType;
 }
Exemplo n.º 11
0
 public HashEncrypt(HashEncryptType HashType)
 {
     this.mstrSaltValue = string.Empty;
     this.msrtSaltLength = 8;
     this.mbytHashType = HashType;
 }
Exemplo n.º 12
0
 public HashEncrypt(HashEncryptType hashType)
 {
     this._mbytHashType = hashType;
 }
Exemplo n.º 13
0
 public string Encrypt(string originalString, HashEncryptType hashType, string saltValue)
 {
     this._mstrOriginalString = originalString;
     this._mbytHashType = hashType;
     this.mstrSaltValue = saltValue;
     return this.Encrypt();
 }
Exemplo n.º 14
0
 public string Encrypt(string originalString, HashEncryptType hashType)
 {
     this._mstrOriginalString = originalString;
     this._mbytHashType = hashType;
     return this.Encrypt();
 }
Exemplo n.º 15
0
 public void Reset()
 {
     this.mstrSaltValue = string.Empty;
     this._mstrOriginalString = string.Empty;
     this._mstrHashString = string.Empty;
     this.mboolUseSalt = false;
     this._mbytHashType = HashEncryptType.MD5;
     this._mhash = null;
 }
Exemplo n.º 16
0
 public HashEncrypt()
 {
     this._mbytHashType = HashEncryptType.MD5;
 }
Exemplo n.º 17
0
 public HashEncrypt()
 {
     this._mbytHashType = HashEncryptType.MD5;
 }
Exemplo n.º 18
0
 public HashEncrypt(HashEncryptType hashType, string originalString)
 {
     this._mbytHashType       = hashType;
     this._mstrOriginalString = originalString;
 }
Exemplo n.º 19
0
 public string CreateHash(string OriginalString, HashEncryptType HashType, string SaltValue)
 {
     this.mstrOriginalString = OriginalString;
     this.mbytHashType = HashType;
     this.mstrSaltValue = SaltValue;
     return this.CreateHash();
 }