Hey, so I'm creating a program that creates a SHA512 hash. I have a problem though. I try to encrypt the word 'test' and I get this encrypted hash as:
Which isn't a SHA512 hash. Here is my code so far, maybe you can help me.
Imports System.Security.Cryptography Imports System.Security Imports System.Text Public Class Form1 Dim sham As New SHA512Managed() Dim result As Byte() Dim data As Byte() Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click data = ASCIIEncoding.ASCII.GetBytes(TextBox1.Text) result = sham.ComputeHash(data) RichTextBox1.Text = ASCIIEncoding.ASCII.GetString(result) End Sub End Class