use io.WriteString for the hash creation