Fixed conversion of digest to hex
Merge pull request #5 from TheoAndersen/master

Fixed conversion of digest to hex