opensim/OpenSim/Framework/Util.cs
/// <summary>
/// Return an md5 hash of the given string
/// </summary>
/// <param name="data"></param>
/// <returns></returns>
Return an md5 hash of the given string
Return an md5 hash of the given string
public static string Md5Hash(string data)
        {
            byte[] dataMd5 = ComputeMD5Hash(data);
            StringBuilder sb = new StringBuilder();
            for (int i = 0; i < dataMd5.Length; i++)
                sb.AppendFormat("{0:x2}", dataMd5[i]);
            return sb.ToString();
        }
public static string Md5Hash ( string data ) { byte [ ] dataMd5 = ComputeMD5Hash ( data ) ; StringBuilder sb = new StringBuilder ( ) ; for ( int i = 0 ; i < dataMd5 . Length ; i ++ ) sb . AppendFormat ( " " , dataMd5 [ i ] ) ; return sb . ToString ( ) ; }
Return an md5 hash of the given string
Return an md5 hash of the given string
None
data
string
None