public void Sha512Test() { hasher h = new hasher(); string hash = h.sha512("A quick brown fox jumps over the lazy dog."); string expect = @"0EW\�s�eo_4&�JJ���S�r��p������ʴ�����?��J�SjBsS�t��e��F"; Assert.AreEqual(expect, hash); }
private void button5_Click(object sender, EventArgs e) { hasher h = new hasher(); string output = h.sha512(textBox1.Text); //sha512 sha = new sha512(); //string output = sha.encode(textBox1.Text); textBox2.Text = output; }