MD5加密

/// <summary>
    /// ///////MD5加密
    /// </summary>
    /// <param name="Sourcein"></param>
    /// <returns></returns>
    public static string MD5(string Sourcein) 
    {
        MD5CryptoServiceProvider MD5CSP = new MD5CryptoServiceProvider();
        byte[] MD5Source = System.Text.Encoding.UTF8.GetBytes(Sourcein);
        byte[] MD5Out = MD5CSP.ComputeHash(MD5Source);
        return Convert.ToBase64String(MD5Out);
    } 

  

posted @ 2015-04-17 10:53  执著者  阅读(93)  评论(0编辑  收藏  举报