从Linux命令行生成SHA-256哈希
我知道字符串“ foobar”
c3ab8ff13720e8ad9047dd39466b3c8974e592c2fa383d4a3960714caef0c4f2使用http://hash.online-convert.com/sha256-generator生成SHA-256哈希
但是命令行shell:
hendry@x201 ~$ echo foobar | sha256sumaec070645fe53ee3b3763059376134f058cc337247c978add178b6ccdfb0019f -
生成不同的哈希。我想念什么?
回答:
echo通常会输出换行符,用禁止-n。尝试这个:
echo -n foobar | sha256sum以上是 从Linux命令行生成SHA-256哈希 的全部内容, 来源链接: utcz.com/qa/432095.html
