国产一级a片免费看高清,亚洲熟女中文字幕在线视频,黄三级高清在线播放,免费黄色视频在线看

打開APP
userphoto
未登錄

開通VIP,暢享免費電子書等14項超值服

開通VIP
安全文本操作 類

代碼
using System;
using System.Collections.Generic;
using System.Text;
using System.Security.Cryptography;
using System.IO;
namespace BaseFunction
{
    /// <summary>
    /// 常用函數(shù)。
    /// 作者:蘇飛
    /// 時間:20090322
    /// </summary>
    public sealed class Functions
    {
        static Int32 index;
        #region 前面補零
        /// <summary>
        /// 不住位數(shù)的數(shù)字,前面補零
        /// </summary>
        /// <param name="value">要補足的數(shù)字</param>
        /// <param name="size">不齊的位數(shù)</param>
        /// <returns></returns>
        public static string Zerofill(string value, int size)
        {
            string tmp = "";
            for (int i = 0; i < size - value.Length; i++)
            {
                tmp += "0";
            }
            return tmp + value;
        }
        #endregion
        #region 過濾掉 html代碼
        /// <summary>
        /// 過濾html標簽
        /// </summary>
        /// <param name="strHtml">html的內(nèi)容</param>
        /// <returns></returns>
        public static string StripHTML(string strHtml)
        {
            string[] aryReg ={
                                  @"<script[^>]*?>.*?</script>",
                                  @"<(\/\s*)?!?((\w+<img src=\"static/image/smiley/default/smile.gif\" smilieid=\"1\" border=\"0\" alt=\"\" />?\w+)(\w+(\s*=?\s*(([""'])(\\[""'tbnr]|[^\7])*?\7|\w+)|.{0})|\s)*?(\/\s*)?>",
                                  @"([\r\n])[\s]+",
                                  @"&(quot|#34);",
                                  @"&(amp|#38);",
                                  @"&(lt|#60);",
                                  @"&(gt|#62);",
                                  @"&(nbsp|#160);",
                                  @"&(iexcl|#161);",
                                  @"&(cent|#162);",
                                  @"&(pound|#163);",
                                  @"&(copy|#169);",
                                  @"&#(\d+);",
                                  @"-->",
                                  @"<!--.*\n"
                              };
            string[] aryRep = {
                                   "",
                                   "",
                                   "",
                                   "\"",
                                   "&",
                                   "<",
                                   ">",
                                   " ",
                                   "\xa1",//chr(161),
                                   "\xa2",//chr(162),
                                   "\xa3",//chr(163),
                                   "\xa9",//chr(169),
                                   "",
                                   "\r\n",
                                   ""
                               };
            string newReg = aryReg[0];
            string strOutput = strHtml;
            for (int i = 0; i < aryReg.Length; i++)
            {
                System.Text.RegularExpressions.Regex regex = new System.Text.RegularExpressions.Regex(aryReg<i>, System.Text.RegularExpressions.RegexOptions.IgnoreCase);
                strOutput = regex.Replace(strOutput, aryRep<i>);
            }
            //strOutput.Replace("<", "");
            //strOutput.Replace(">", "");
            strOutput = strOutput.Replace("\r\n", "");
            return strOutput;
        }
        #endregion
        #region 全角半角轉(zhuǎn)換
        /// <summary>
        /// 轉(zhuǎn)全角的函數(shù)(SBC case)
        /// </summary>
        /// <param name="input">任意字符串</param>
        /// <returns>全角字符串</returns>
        ///<remarks>
        ///全角空格為12288,半角空格為32
        ///其他字符半角(33-126)與全角(65281-65374)的對應(yīng)關(guān)系是:均相差65248
        ///</remarks>
        public static string ToSBC(string input)
        {
            //半角轉(zhuǎn)全角:
            char[] c = input.ToCharArray();
            for (int i = 0; i < c.Length; i++)
            {
                if (c<i> == 32)
                {
                    c<i> = (char)12288;
                    continue;
                }
                if (c<i> < 127)
                    c<i> = (char)(c<i> + 65248);
            }
            return new string(c);
        }

        /// <summary> 轉(zhuǎn)半角的函數(shù)(DBC case) </summary>
        /// <param name="input">任意字符串</param>
        /// <returns>半角字符串</returns>
        ///<remarks>
        ///全角空格為12288,半角空格為32
        ///其他字符半角(33-126)與全角(65281-65374)的對應(yīng)關(guān)系是:均相差65248
        ///</remarks>
        public static string ToDBC(string input)
        {
            char[] c = input.ToCharArray();
            for (int i = 0; i < c.Length; i++)
            {
                if (c<i> == 12288)
                {
                    c<i> = (char)32;
                    continue;
                }
                if (c<i> > 65280 && c<i> < 65375)
                    c<i> = (char)(c<i> - 65248);
            }
            return new string(c);
        }
        #endregion

        #region 傳入URL返回網(wǎng)頁的html代碼
        /// <summary>
        /// 傳入URL返回網(wǎng)頁的html代碼
        /// </summary>
        /// <param name="Url">URL</param>
        /// <returns></returns>
        public static string GetUrltoHtml(string Url)
        {
            try
            {
                System.Net.WebRequest wReq = System.Net.WebRequest.Create(Url);
                // Get the response instance.
                System.Net.WebResponse wResp = wReq.GetResponse();
                // Read an HTTP-specific property
                //if (wResp.GetType() ==HttpWebResponse)
                //{
                //DateTime updated  =((System.Net.HttpWebResponse)wResp).LastModified;
                //}
                // Get the response stream.
                System.IO.Stream respStream = wResp.GetResponseStream();
                // Dim reader As StreamReader = New StreamReader(respStream)
                System.IO.StreamReader reader = new System.IO.StreamReader(respStream, System.Text.Encoding.GetEncoding("gb2312"));
                return reader.ReadToEnd();
            }
            catch (System.Exception ex)
            {
                //errorMsg = ex.Message;
            }
            return "";
        }
        #endregion
        #region MD5加密字符串。截取字符串
        /// <summary>
        /// 傳入明文,返回用MD%加密后的字符串
        /// </summary>
        /// <param name="str">要加密的字符串</param>
        /// <returns>用MD5加密后的字符串</returns>
        public static string ToMD5(string str)
        {
            return System.Web.Security.FormsAuthentication.HashPasswordForStoringInConfigFile(str, "md5");
        }
        /// <summary>
        /// 截取字符串。
        /// </summary>
        /// <param name="str">要接取得字符串</param>
        /// <param name="number">保留的字節(jié)數(shù)。按半角計算</param>
        /// <returns>指定長度的字符串</returns>
        public static string StringCal(string str, int number)
        {
            Byte[] tempStr = System.Text.Encoding.Default.GetBytes(str);
            if (tempStr.Length > number)
            {
                return System.Text.Encoding.Default.GetString(tempStr, 0, number - 2) + "..";
            }
            else
                return str;
        }

        #endregion
        #region 刪除文件
        /// <summary>
        /// 刪除文件
        /// </summary>
        /// <param name="FilePath">文件的物理地址</param>
        /// <returns></returns>
        public static bool DeleteFile(string FilePath)
        {
            try
            {
                System.IO.File.Delete(FilePath);
                return true;
            }
            catch
            {
                //errorMsg = "刪除不成功!";
                return false;
            }
        }
        #endregion
        #region 驗證——數(shù)字部分
        /// <summary>
        /// 判斷是否是實數(shù),是返回true 否返回false??梢詡魅雗ull。
        /// </summary>
        /// <param name="strVal">要驗證的字符串</param>
        /// <returns></returns>
        public static bool IsNumeric(string strVal)
        {
            //System.Text.RegularExpressions.Regex reg1 = new System.Text.RegularExpressions.Regex("-?([0]|([1-9]+\\d{0,}?))(.[\\d]+)?$"); 
            //return reg1.IsMatch(strVal); 
            //string tmp="";
            //判斷是否為null 和空字符串
            if (strVal == null || strVal.Length == 0)
                return false;
            //判斷是否只有.、-、 -.
            if (strVal == "." || strVal == "-" || strVal == "-.")
                return false;
            //記錄是否有多個小數(shù)點
            bool isPoint = false;            //是否有小數(shù)點
            //去掉第一個負號,中間是不可以有負號的
            strVal = strVal.TrimStart('-');
            foreach (char c in strVal)
            {
                if (c == '.')
                    if (isPoint)
                        return false;
                    else
                        isPoint = true;
                if ((c < '0' || c > '9') && c != '.')
                    return false;
            }
            return true;
        }
        /// <summary>
        /// 判斷是否為整數(shù)。是返回true 否返回false??梢詡魅雗ull。
        /// </summary>
        /// <param name="strVal">要判斷的字符</param>
        /// <returns></returns>
        public static bool IsInt(string strVal)
        {
            if (strVal == null || strVal.Length == 0)
                return false;
            //判斷是否只有.、-、 -.
            if (strVal == "." || strVal == "-" || strVal == "-.")
                return false;
            //去掉第一個負號,中間是不可以有負號的
            if (strVal.Substring(0, 1) == "-")
                strVal = strVal.Remove(0, 1);
            foreach (char c in strVal)
            {
                if (c < '0' || c > '9')
                    return false;
            }
            return true;
        }
        /// <summary>
        /// 判斷是否為ID串。是返回true 否返回false??梢詡魅雗ull。
        /// </summary>
        /// <example >
        /// ,1,2,3,4,5,6,7,
        /// </example>
        /// <param name="strVal">要判斷的字符串</param>
        /// <returns></returns>
        public static bool IsIDString(string strVal)
        {
            bool flag = false;
            if (strVal == null)
                return false;
            if (strVal == "")
                return true;
            //判斷是否只有 ,
            if (strVal == ",")
                return false;
            //判斷第一位是否是,號
            if (strVal.Substring(0, 1) == ",")
                return false;
            //判斷最后一位是否是,號
            if (strVal.Substring(strVal.Length - 1, 1) == ",")
                return false;
            foreach (char c in strVal)
            {
                if (c == ',')
                    if (flag) return false; else flag = true;
                else if ((c >= '0' && c <= '9'))
                    flag = false;
                else
                    return false;
            }
            return true;
        }
        /// <summary>
        /// 轉(zhuǎn)換為整數(shù)。不是整數(shù)的話,返回“-1”
        /// </summary>
        /// <param name="str">要轉(zhuǎn)換的字符</param>
        /// <returns></returns>
        public static int StringToInt(string str)
        {
            //判斷是否是數(shù)字,是數(shù)字返回數(shù)字,不是數(shù)字返回-1
            if (IsInt(str))
                return Int32.Parse(str);
            else
                return -1;
        }
        /// <summary>
        /// 轉(zhuǎn)換為實數(shù)。不是實數(shù)的話,返回“-1”
        /// </summary>
        /// <param name="str"></param>
        /// <returns></returns>
        public static float StrTofloat(string str)
        {
            //判斷是否是數(shù)字,是數(shù)字返回數(shù)字,不是數(shù)字返回-1
            if (IsNumeric(str))
                return float.Parse(str);
            else
                return -1;
        }
        /// <summary>
        /// 驗證是否是GUID
        /// 6454bc76-5f98-de11-aa4c-00219bf56456
        /// </summary>
        /// <returns></returns>
        public static bool IsGUID(string strVal)
        {
            if (strVal == null)
                return false;
            if (strVal == "")
                return false;
            strVal = strVal.TrimStart('{');
            strVal = strVal.TrimEnd('}');
            //長度必須是36位
            if (strVal.Length != 36)
                return false;
            foreach (char c in strVal)
            {
                if (c == '-')
                    continue;
                else if (c >= 'a' && c <= 'f')
                    continue;
                else if (c >= 'A' && c <= 'F')
                    continue;
                else if ((c >= '0' && c <= '9'))
                    continue;
                else
                    return false;
            }
            return true;
        }
        #endregion

        #region 驗證——處理字符串部分
        /// <summary>
        /// 去掉兩邊的空格,把“'”替換為“'”SBC
        /// </summary>
        /// <param name="str">要處理的字符串</param>
        /// <returns></returns>
        public static string StringReplaceToSBC(string str)
        {
            //過濾不安全的字符
            string tstr;
            tstr = str.Trim();
            return tstr.Replace("'", "'");
        }
        /// <summary>
        /// 去掉兩邊的空格,把“'”替換為“''”DBC
        /// </summary>
        /// <param name="str">要驗證的字符串</param>
        /// <returns></returns>
        public static string StringReplaceToDBC(string str)
        {
            //過濾不安全的字符
            string tstr;
            tstr = str.Trim();
            return tstr.Replace("'", "''");
        }
        /// <summary>
        /// 去掉兩邊的空格,把“'”替換為“”
        /// </summary>
        /// <param name="str">要驗證的字符串</param>
        /// <returns></returns>
        public static string StringReplaceToEmpty(string str)
        {
            //過濾不安全的字符
            string tstr;
            tstr = str.Trim();
            return tstr.Replace("'", "");
        }
        #endregion

        #region 驗證——時間部分
        /// <summary>
        /// 轉(zhuǎn)換時間。不正確的話,返回當前時間
        /// </summary>
        /// <param name="isdt">要轉(zhuǎn)換的字符串</param>
        /// <returns></returns>
        public static DateTime StringToDateTime(string isdt)
        {
            //判斷時間是否正確
            DateTime mydt;
            try
            {
                mydt = Convert.ToDateTime(isdt);
            }
            catch
            {
                //時間格式不正確
                return mydt = DateTime.Now;
            }
            return mydt;
        }
        /// <summary>
        /// 判斷是否是正確的時間格式。正確返回“true”,不正確返回提示信息。
        ///
        /// </summary>
        /// <param name="isdt">要判斷的字符串</param>
        /// <returns></returns>
        public static bool IsDateTime(string isdt)
        {
            //判斷時間是否正確
            DateTime mydt;
            try
            {
                mydt = Convert.ToDateTime(isdt);
                return true;
            }
            catch
            {
                //時間格式不正確
                //errorMsg = "您填的時間格式不正確,請按照2004-1-1的形式填寫。";
                return false;
            }

        }
        #endregion

        #region 生成查詢條件
        /// <summary>
        /// 組成查詢字符串
        /// </summary>
        /// <param name="columnName">字段名</param>
        /// <param name="keyword">查詢條件</param>
        /// <param name="hasContent">是否已經(jīng)有查詢條件了,true:加and;false:不加and</param>
        /// <param name="colType">1:數(shù)字;2:字符串,精確查詢;3:字符串,模糊查詢,包括時間查詢</param>
        /// <returns></returns>
        public static string GetSearchString(string columnName, string keyword, ref bool hasContent, int colType)
        {
            if (keyword == "" || keyword == "0")
            {
                return "";
            }
            else
            {
                System.Text.StringBuilder tmp = new System.Text.StringBuilder();
                switch (colType)
                {
                    case 1:
                        //數(shù)字
                        tmp.Append(columnName);
                        tmp.Append(" = ");
                        tmp.Append(keyword);
                        break;
                    case 2:
                        //字符串,精確查詢
                        tmp.Append(columnName);
                        tmp.Append(" = '");
                        tmp.Append(keyword);
                        tmp.Append("' ");
                        break;
                    case 3:
                        //字符串,模糊查詢,包括時間查詢
                        tmp.Append(columnName);
                        tmp.Append(" like '% ");
                        tmp.Append(keyword);
                        tmp.Append("%' ");
                        break;
                }
                if (hasContent)
                    tmp.Insert(0, " and ");
                hasContent = true;
                return tmp.ToString();
            }
        }
        #endregion
        #region ========解密========

        /// <summary>
        /// 解密
        /// </summary>
        /// <param name="Text"></param>
        /// <returns></returns>
        public static string Decrypt(string Text)
        {
            return Decrypt(Text, "litianping");
        }
        /// <summary>
        /// 解密數(shù)據(jù)
        /// </summary>
        /// <param name="Text"></param>
        /// <param name="sKey"></param>
        /// <returns></returns>
        public static string Decrypt(string Text, string sKey)
        {
            DESCryptoServiceProvider des = new DESCryptoServiceProvider();
            int len;
            len = Text.Length / 2;
            byte[] inputByteArray = new byte[len];
            int x, i;
            for (x = 0; x < len; x++)
            {
                i = Convert.ToInt32(Text.Substring(x * 2, 2), 16);
                inputByteArray[x] = (byte)i;
            }
            des.Key = ASCIIEncoding.ASCII.GetBytes(System.Web.Security.FormsAuthentication.HashPasswordForStoringInConfigFile(sKey, "md5").Substring(0, 8));
            des.IV = ASCIIEncoding.ASCII.GetBytes(System.Web.Security.FormsAuthentication.HashPasswordForStoringInConfigFile(sKey, "md5").Substring(0, 8));
            System.IO.MemoryStream ms = new System.IO.MemoryStream();
            CryptoStream cs = new CryptoStream(ms, des.CreateDecryptor(), CryptoStreamMode.Write);
            cs.Write(inputByteArray, 0, inputByteArray.Length);
            cs.FlushFinalBlock();
            return Encoding.Default.GetString(ms.ToArray());
        }
        #endregion
    }
    #region 加密、解密字符串
    /// <summary>
    /// 加密字符串。可以解密
    /// </summary>
    public class Encryptor
    {
        #region 加密,固定密鑰
        /// <summary>
        /// 加密
        /// </summary>
        /// <param name="sourceData">原文</param>
        /// <returns></returns>
        public static string Encrypt(string sourceData)
        {
            //set key and initialization vector values
            //Byte[] key = new byte[] {0x21, 2, 0x88, 4, 5, 0x56, 7, 0x99};
            //Byte[] iv = new byte[] {0x21, 2, 0x88, 4, 5, 0x56, 7, 0x99};
            Byte[] key = new byte[] { 1, 2, 3, 4, 5, 6, 7, 8 };
            Byte[] iv = new byte[] { 1, 2, 3, 4, 5, 6, 7, 8 };
            try
            {
                //convert data to byte array
                Byte[] sourceDataBytes = System.Text.ASCIIEncoding.UTF8.GetBytes(sourceData);
                //get target memory stream
                MemoryStream tempStream = new MemoryStream();
                //get encryptor and encryption stream
                DESCryptoServiceProvider encryptor = new DESCryptoServiceProvider();
                CryptoStream encryptionStream = new CryptoStream(tempStream, encryptor.CreateEncryptor(key, iv), CryptoStreamMode.Write);
                //encrypt data
                encryptionStream.Write(sourceDataBytes, 0, sourceDataBytes.Length);
                encryptionStream.FlushFinalBlock();
                //put data into byte array
                Byte[] encryptedDataBytes = tempStream.GetBuffer();
                //convert encrypted data into string
                return System.Convert.ToBase64String(encryptedDataBytes, 0, (int)tempStream.Length);
            }
            catch (Exception ex)
            {
                throw (ex);
            }
        }
        #endregion
        #region 加密,可以設(shè)置密鑰
        /// <summary>
        /// 可以設(shè)置密鑰的加密方式
        /// </summary>
        /// <param name="sourceData">原文</param>
        /// <param name="key">密鑰,8位數(shù)字,字符串方式</param>
        /// <returns></returns>
        public static string Encrypt(string sourceData, string key)
        {
            //set key and initialization vector values
            //Byte[] key = new byte[] {0x21, 2, 0x88, 4, 5, 0x56, 7, 0x99};
            //Byte[] iv = new byte[] {0x21, 2, 0x88, 4, 5, 0x56, 7, 0x99};
            #region 檢查密鑰是否符合規(guī)定
            if (key.Length > 8)
            {
                key = key.Substring(0, 8);
            }
            #endregion
            char[] tmp = key.ToCharArray();
            Byte[] keys = new byte[8];
            //Byte[] keys = new byte[] { 1, 2, 3, 4, 5, 6, 7, 8 };
            Byte[] iv = new byte[] { 1, 2, 3, 4, 5, 6, 7, 8 };
            //設(shè)置密鑰
            for (int i = 0; i < 8; i++)
            {
                if (tmp.Length > i)
                {
                    keys<i> = (byte)tmp<i>;
                }
                else
                {
                    keys<i> = (byte)i;
                }
            }
            try
            {
                //convert data to byte array
                Byte[] sourceDataBytes = System.Text.ASCIIEncoding.UTF8.GetBytes(sourceData);
                //get target memory stream
                MemoryStream tempStream = new MemoryStream();
                //get encryptor and encryption stream
                DESCryptoServiceProvider encryptor = new DESCryptoServiceProvider();
                CryptoStream encryptionStream = new CryptoStream(tempStream, encryptor.CreateEncryptor(keys, iv), CryptoStreamMode.Write);
                //encrypt data
                encryptionStream.Write(sourceDataBytes, 0, sourceDataBytes.Length);
                encryptionStream.FlushFinalBlock();
                //put data into byte array
                Byte[] encryptedDataBytes = tempStream.GetBuffer();
                //convert encrypted data into string
                return System.Convert.ToBase64String(encryptedDataBytes, 0, (int)tempStream.Length);
            }
            catch (Exception ex)
            {
                throw (ex);
            }
        }
        #endregion
        #region 解密,固定密鑰
        /// <summary>
        /// 解密
        /// </summary>
        /// <param name="sourceData">密文</param>
        /// <returns></returns>
        public static string Decrypt(string sourceData)
        {
            //set key and initialization vector values
            //Byte[] key = new byte[] {0x21, 2, 0x88, 4, 5, 0x56, 7, 0x99};
            //Byte[] iv = new byte[] {0x21, 2, 0x88, 4, 5, 0x56, 7, 0x99};
            Byte[] keys = new byte[] { 1, 2, 3, 4, 5, 6, 7, 8 };
            Byte[] iv = new byte[] { 1, 2, 3, 4, 5, 6, 7, 8 };
            try
            {
                //convert data to byte array
                Byte[] encryptedDataBytes = System.Convert.FromBase64String(sourceData);
                //get source memory stream and fill it
                MemoryStream tempStream = new MemoryStream(encryptedDataBytes, 0, encryptedDataBytes.Length);
                //get decryptor and decryption stream
                DESCryptoServiceProvider decryptor = new DESCryptoServiceProvider();
                CryptoStream decryptionStream = new CryptoStream(tempStream, decryptor.CreateDecryptor(keys, iv), CryptoStreamMode.Read);
                //decrypt data
                StreamReader allDataReader = new StreamReader(decryptionStream);
                return allDataReader.ReadToEnd();
            }
            catch (Exception ex)
            {
                throw (ex);
            }
        }
        #endregion
        #region 解密,固定密鑰
        /// <summary>
        /// 解密
        /// </summary>
        /// <param name="sourceData">密文</param>
        /// <param name="key">密鑰,8位數(shù)字,字符串方式</param>
        /// <returns></returns>
        public static string Decrypt(string sourceData, string key)
        {
            //set key and initialization vector values
            //Byte[] key = new byte[] {0x21, 2, 0x88, 4, 5, 0x56, 7, 0x99};
            //Byte[] iv = new byte[] {0x21, 2, 0x88, 4, 5, 0x56, 7, 0x99};
            #region 檢查密鑰是否符合規(guī)定
            if (key.Length > 8)
            {
                key = key.Substring(0, 8);
            }
            #endregion
            char[] tmp = key.ToCharArray();
            Byte[] keys = new byte[8];
            //Byte[] keys = new byte[] { 1, 2, 3, 4, 5, 6, 7, 8 };
            Byte[] iv = new byte[] { 1, 2, 3, 4, 5, 6, 7, 8 };
            //設(shè)置密鑰
            for (int i = 0; i < 8; i++)
            {
                if (tmp.Length > i)
                {
                    keys<i> = (byte)tmp<i>;
                }
                else
                {
                    keys<i> = (byte)i;
                }
            }

            try
            {
                //convert data to byte array
                Byte[] encryptedDataBytes = System.Convert.FromBase64String(sourceData);
                //get source memory stream and fill it
                MemoryStream tempStream = new MemoryStream(encryptedDataBytes, 0, encryptedDataBytes.Length);
                //get decryptor and decryption stream
                DESCryptoServiceProvider decryptor = new DESCryptoServiceProvider();
                CryptoStream decryptionStream = new CryptoStream(tempStream, decryptor.CreateDecryptor(keys, iv), CryptoStreamMode.Read);
                //decrypt data
                StreamReader allDataReader = new StreamReader(decryptionStream);
                return allDataReader.ReadToEnd();
            }
            catch (Exception ex)
            {
                throw (ex);
            }
        }
        #endregion
        /// <summary>
        /// 對需要加密的字串進行MD5加密(針對密碼加密)
        /// </summary>
        /// <param name="ConvertString">需要加密的字串</param>
        /// <returns>加密后的字串</returns>
        /// <remarks>
        /// Modifier: Xiaoliang Ge
        /// Modified Date: 2009-12-26
        /// </remarks>
        public static string MD5EncryptStr(string ConvertString)
        {
            MD5CryptoServiceProvider md5 = new MD5CryptoServiceProvider();
            string t2 = BitConverter.ToString(md5.ComputeHash(UTF8Encoding.Default.GetBytes(ConvertString)),
, 8);
            return t2;
        }
    }
    #endregion
}

本站僅提供存儲服務(wù),所有內(nèi)容均由用戶發(fā)布,如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請點擊舉報。
打開APP,閱讀全文并永久保存 查看更多類似文章
猜你喜歡
類似文章
字符串格式的判斷
Android和.NET通用的AES算法
C# 加密解密(DES,3DES,MD5,Base64) 類
C#數(shù)據(jù)壓縮
C#編程總結(jié)(十)字符轉(zhuǎn)碼
C#開發(fā)中常用的加密解密方法匯總
更多類似文章 >>
生活服務(wù)
分享 收藏 導長圖 關(guān)注 下載文章
綁定賬號成功
后續(xù)可登錄賬號暢享VIP特權(quán)!
如果VIP功能使用有故障,
可點擊這里聯(lián)系客服!

聯(lián)系客服