Digest mimatch for sha256

夙愿已清 提交于 2020-01-07 02:52:07

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!