Example #1
0
        public void Sha256Test()
        {
            hasher h      = new hasher();
            string hash   = h.sha256("A quick brown fox jumps over the lazy dog.");
            string expect = "��%��ԄnL�u�\u0003��\u000f�Vj���W\u0014X��P��";

            Assert.AreEqual(expect, hash);
        }
Example #2
0
        private void button4_Click(object sender, EventArgs e)
        {
            hasher h      = new hasher();
            string output = h.sha256(textBox1.Text);

            //sha256 sha = new sha256();
            //string output = sha.encode(textBox1.Text);

            textBox2.Text = output;
        }