Ejemplo n.º 1
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();
 }
Ejemplo 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();
        }
Ejemplo n.º 3
0
 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;
 }
Ejemplo n.º 4
0
        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;
        }