问题
I am trying to encode the string abc
using sha256 and below is the output I got.
ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad
But, if I use the command openssl sha256 -hex
on Linux command line, I get the below output for the same string.
edeaaff3f1774ad2888673770c6d64097e391bc362d7d6fb34982ddf0efd18cb
Why is there a difference in the outputs? Where am I doing wrong?
来源:https://stackoverflow.com/questions/39307192/digest-mimatch-for-sha256