public static string GeneratePassword(string password, string salt)
        {
            var passwordSalt = string.Concat(password, salt);
            var hasedPwd     = passwordSalt == null ? string.Empty : CommonEncryptionUtility.ByteArrayToString(CommonEncryptionUtility.ConvertToMD5Hash(passwordSalt));

            return(hasedPwd);
        }
예제 #2
0
 public static string EncryptString(string stringData)
 {
     return(string.IsNullOrEmpty(stringData) ? string.Empty : CommonEncryptionUtility.ByteArrayToString(CommonEncryptionUtility.ConvertToMD5Hash(stringData)));
 }