So I came across the following code in Go trying to explain how md5 hashing works.
package main
import (
"crypto/md5"
"fmt"
)
func HashFunc(word string) {
hash := md5.New()
bytes := []byte(word)
hash.Write(bytes)
hashValue := hash.Sum(nil)
hashSize := hash.Size()
for n := 0; n < hashSize; n += 4 {
var val = uint32(hashValue[n])<<24 +
uint32(hashValue[n+1])<<16 +
uint32(hashValue[n+2])<<8 +
uint32(hashValue[n+3])
fmt.Printf("%x ", val)
}
fmt.Println()
}
I would simply like to know how to dencrypt any data that is encrypted by the above function.