예제 #1
0
 public HashEncrypt(HashEncryptType hashType, string originalString, bool useSalt, string saltValue)
 {
     this._mbytHashType       = hashType;
     this._mstrOriginalString = originalString;
     this.mboolUseSalt        = useSalt;
     this.mstrSaltValue       = saltValue;
 }
예제 #2
0
 public string Encrypt(string originalString, HashEncryptType hashType, string saltValue)
 {
     this._mstrOriginalString = originalString;
     this._mbytHashType       = hashType;
     this.mstrSaltValue       = saltValue;
     return(this.Encrypt());
 }
예제 #3
0
파일: HashEncrypt.cs 프로젝트: x1987624/SNS
        /// <summary>
        /// 进行非对称加密
        /// </summary>
        /// <param name="originalString">原始字符串</param>
        /// <param name="hashType">加密类型</param>
        public string Encrypt(string originalString, HashEncryptType hashType)
        {
            _mstrOriginalString = originalString;
            _mbytHashType       = hashType;

            return(this.Encrypt());
        }
예제 #4
0
파일: HashEncrypt.cs 프로젝트: hbulzy/SYS
 public HashEncrypt(HashEncryptType hashType, string originalString, bool useSalt, string saltValue)
 {
     this._mbytHashType = hashType;
     this._mstrOriginalString = originalString;
     this.mboolUseSalt = useSalt;
     this.mstrSaltValue = saltValue;
 }
예제 #5
0
 public HashEncrypt(HashEncryptType HashType, string OriginalString)
 {
     this.mstrSaltValue = string.Empty;
     this.msrtSaltLength = 8;
     this.mbytHashType = HashType;
     this.mstrOriginalString = OriginalString;
 }
예제 #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;
 }
예제 #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;
 }
예제 #8
0
파일: HashEncrypt.cs 프로젝트: x1987624/SNS
        /// <summary>
        /// 重置加密设置
        /// </summary>
        public void Reset()
        {
            mstrSaltValue       = String.Empty;
            _mstrOriginalString = String.Empty;
            _mstrHashString     = String.Empty;
            mboolUseSalt        = false;
            _mbytHashType       = HashEncryptType.MD5;

            _mhash = null;
        }
예제 #9
0
파일: HashEncrypt.cs 프로젝트: hbulzy/SYS
 public HashEncrypt(HashEncryptType hashType, string originalString)
 {
     this._mbytHashType = hashType;
     this._mstrOriginalString = originalString;
 }
예제 #10
0
파일: HashEncrypt.cs 프로젝트: hbulzy/SYS
 public HashEncrypt(HashEncryptType hashType)
 {
     this._mbytHashType = hashType;
 }
예제 #11
0
 public HashEncrypt(HashEncryptType HashType)
 {
     this.mstrSaltValue = string.Empty;
     this.msrtSaltLength = 8;
     this.mbytHashType = HashType;
 }
예제 #12
0
 public HashEncrypt(HashEncryptType hashType)
 {
     this._mbytHashType = hashType;
 }
예제 #13
0
파일: HashEncrypt.cs 프로젝트: hbulzy/SYS
 public string Encrypt(string originalString, HashEncryptType hashType, string saltValue)
 {
     this._mstrOriginalString = originalString;
     this._mbytHashType = hashType;
     this.mstrSaltValue = saltValue;
     return this.Encrypt();
 }
예제 #14
0
파일: HashEncrypt.cs 프로젝트: hbulzy/SYS
 public string Encrypt(string originalString, HashEncryptType hashType)
 {
     this._mstrOriginalString = originalString;
     this._mbytHashType = hashType;
     return this.Encrypt();
 }
예제 #15
0
파일: HashEncrypt.cs 프로젝트: hbulzy/SYS
 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;
 }
예제 #16
0
 public HashEncrypt()
 {
     this._mbytHashType = HashEncryptType.MD5;
 }
예제 #17
0
파일: HashEncrypt.cs 프로젝트: hbulzy/SYS
 public HashEncrypt()
 {
     this._mbytHashType = HashEncryptType.MD5;
 }
예제 #18
0
 public HashEncrypt(HashEncryptType hashType, string originalString)
 {
     this._mbytHashType       = hashType;
     this._mstrOriginalString = originalString;
 }
예제 #19
0
 public string CreateHash(string OriginalString, HashEncryptType HashType, string SaltValue)
 {
     this.mstrOriginalString = OriginalString;
     this.mbytHashType = HashType;
     this.mstrSaltValue = SaltValue;
     return this.CreateHash();
 }