Hi, i’m trying to get a byte array to a string but preserving the contents? (Sort of hard to explain)
So, I have something like this:
myhash := sha256.sha256(“random-string-to-hash”)
and I get as output something like this: e0f1d812e21465d6d37cfd5212b5733168f635ef6720e0c0f1e14bc09efcc0fe
But I would like this as a string and not a byte. I can’t use string(myhash) as this would convert each byte in the array into char and i would get garbage.
Does anyone know a way?