I would have it return just the raw bytes. People can call to hex to get the hex digest. :)