public Verify(string f, int bits)
 {
     byte[] data = File.ReadAllBytes(f);
     SHA3Managed sha = new SHA3Managed(bits);
     sha.Initialize();
     byte[] h = sha.ComputeHash(data);
     hash = BitConverter.ToString(h).Replace("-", "").ToLower();
     InitializeComponent();
 }
Esempio n. 2
0
        public Verify(string f, int bits)
        {
            byte[]      data = File.ReadAllBytes(f);
            SHA3Managed sha  = new SHA3Managed(bits);

            sha.Initialize();
            byte[] h = sha.ComputeHash(data);
            hash = BitConverter.ToString(h).Replace("-", "").ToLower();
            InitializeComponent();
        }
 public Calculate(string f, int bits)
 {
     byte[] data = File.ReadAllBytes(f);
     SHA3Managed sha = new SHA3Managed(bits);
     file = f;
     sha.Initialize();
     byte[] h = sha.ComputeHash(data);
     hash = BitConverter.ToString(h).Replace("-","").ToLower();
     InitializeComponent();
     textBox1.Text = hash;
 }
        public Calculate(string f, int bits)
        {
            byte[]      data = File.ReadAllBytes(f);
            SHA3Managed sha  = new SHA3Managed(bits);

            file = f;
            sha.Initialize();
            byte[] h = sha.ComputeHash(data);
            hash = BitConverter.ToString(h).Replace("-", "").ToLower();
            InitializeComponent();
            textBox1.Text = hash;
        }