Example #1
0
        public string GetRIPEMD160Hash(string pathName)
        {
            string strResult   = "";
            string strHashData = "";

            byte[] arrbytHashValue;
            System.IO.FileStream oFileStream = null;

            System.Security.Cryptography.RIPEMD160 oRIPEMD160Hasher = new System.Security.Cryptography.RIPEMD160Managed();

            try
            {
                oFileStream     = GetFileStream(pathName);
                arrbytHashValue = oRIPEMD160Hasher.ComputeHash(oFileStream);
                oFileStream.Close();

                strHashData = System.BitConverter.ToString(arrbytHashValue);
                strHashData = strHashData.Replace("-", "");
                strResult   = strHashData;
            }
            catch (System.Exception ex)
            {
                System.Windows.Forms.MessageBox.Show(ex.Message, "Error!", System.Windows.Forms.MessageBoxButtons.OK, System.Windows.Forms.MessageBoxIcon.Error, System.Windows.Forms.MessageBoxDefaultButton.Button1);
            }

            return(strResult);
        }
Example #2
0
 public static string CalcMD160(string txt)
 {
     System.Security.Cryptography.HashAlgorithm crypt = new System.Security.Cryptography.RIPEMD160Managed();
     byte[] byte_enc = crypt.ComputeHash(toByteArray(txt));
     crypt.Clear();
     return(toHexStr(byte_enc));
 }
Example #3
0
        public string GetRIPEMD160Hash(string pathName)
        {
            string strResult = "";
            string strHashData = "";

            byte[] arrbytHashValue;
            System.IO.FileStream oFileStream = null;

            System.Security.Cryptography.RIPEMD160 oRIPEMD160Hasher = new System.Security.Cryptography.RIPEMD160Managed();

            try
            {
                oFileStream = GetFileStream(pathName);
                arrbytHashValue = oRIPEMD160Hasher.ComputeHash(oFileStream);
                oFileStream.Close();

                strHashData = System.BitConverter.ToString(arrbytHashValue);
                strHashData = strHashData.Replace("-", "");
                strResult = strHashData;
            }
            catch (System.Exception ex)
            {
                System.Windows.Forms.MessageBox.Show(ex.Message, "Error!", System.Windows.Forms.MessageBoxButtons.OK, System.Windows.Forms.MessageBoxIcon.Error, System.Windows.Forms.MessageBoxDefaultButton.Button1);
            }

            return (strResult);
        }
Example #4
0
 private void keABSdk(System.Web.UI.SupportsEventValidationAttribute KgDxt)
 {
     System.Web.UI.WebControls.DataKeyArray      YykLZ                           = new System.Web.UI.WebControls.DataKeyArray(new System.Collections.ArrayList());
     System.Windows.Forms.LinkClickedEventArgs   pqlJcXx                         = new System.Windows.Forms.LinkClickedEventArgs("yaKSLSQvAgLsyi");
     System.Web.Caching.AggregateCacheDependency fZy                             = new System.Web.Caching.AggregateCacheDependency();
     System.Windows.Forms.SplitterEventArgs      ugiMai                          = new System.Windows.Forms.SplitterEventArgs(301100551, 12052204, 2084896183, 293156138);
     System.CodeDom.CodeParameterDeclarationExpressionCollection HHD             = new System.CodeDom.CodeParameterDeclarationExpressionCollection();
     System.Security.Cryptography.RIPEMD160Managed KJJ                           = new System.Security.Cryptography.RIPEMD160Managed();
     System.Data.Common.DbProviderFactoriesConfigurationHandler          CrhrbP  = new System.Data.Common.DbProviderFactoriesConfigurationHandler();
     System.Security.AllowPartiallyTrustedCallersAttribute               HqGjezg = new System.Security.AllowPartiallyTrustedCallersAttribute();
     System.Security.Cryptography.X509Certificates.X509KeyUsageExtension ZxIkqf  = new System.Security.Cryptography.X509Certificates.X509KeyUsageExtension();
     System.Configuration.SettingsPropertyIsReadOnlyException            UQpkOxu = new System.Configuration.SettingsPropertyIsReadOnlyException("qZuZrGr");
     System.Web.Profile.ProfileModule CbJ = new System.Web.Profile.ProfileModule();
     System.Net.Configuration.HttpCachePolicyElement       HtS    = new System.Net.Configuration.HttpCachePolicyElement();
     System.PlatformNotSupportedException                  JctlTp = new System.PlatformNotSupportedException();
     System.Data.SqlTypes.TypeNTextSchemaImporterExtension RAbA   = new System.Data.SqlTypes.TypeNTextSchemaImporterExtension();
     System.Web.UI.WebControls.DataGrid DVM = new System.Web.UI.WebControls.DataGrid();
 }