Don't convert to text here. Ensure the crypto hash algorithm returns binary data and return it directly