need to encode the digest to a string from a byte slice