问题描述
你好!
我正在尝试匹配在tcsh shell中完成的md5校验和的结果。
我一直得到不同的结果并且在谷歌上找不到任何东西...
这里的例子是:
Arno @计算机:〜%echo "你好" | md5
b1946ac92492d2347c6235b4d2611184
Arno @ Computer:〜%python
Python 2.5.1(r251:54863,2008年1月17日, 19:35:17)
[GCC 4.0.1(Apple Inc. build 5465)]在darwin上
输入help,copyright,币"或许可证或欲获得更多信息。
Hi there!
I''m trying to match the results of an md5 checksum done in a tcsh shell.
I keep getting different results and can''t find anything on google...
here''s an example:
Arno@Computer:~% echo "hello" | md5
b1946ac92492d2347c6235b4d2611184
Arno@Computer:~% python
Python 2.5.1 (r251:54863, Jan 17 2008, 19:35:17)
[GCC 4.0.1 (Apple Inc. build 5465)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
''5d41402abc4b2a76b9719d911017c592''
如何获得相同的结果?
谢谢
Arno
''5d41402abc4b2a76b9719d911017c592''
How do I get the same results?
thanks
Arno
推荐答案
校验和相同的字符串。
Checksum the same string.
''b1946ac92492d2347c6235b4d2611184 ''
''b1946ac92492d2347c6235b4d2611184''
校验和相同的字符串。
Checksum the same string.
''b1946ac92492d2347c6235b4d2611184''
''b1946ac92492d2347c6235b4d2611184''
hmm然后:
Arno @ Computer:〜%echo" test" test.txt
Arno @ Computer:〜%md5 test.txt
MD5(test.txt)= d8e8fca2dc0f896fd7cb4cb0031ba249
Arno @ Computer:〜%python
Python 2.5.1(r251:54863,2008年1月17日,19:35:17)
[GCC 4.0.1 (Apple Inc. build 5465)]在darwin上
输入help,copyright,credit等等。或许可证或欲获得更多信息。
hmm and this then:
Arno@Computer:~% echo "test" test.txt
Arno@Computer:~% md5 test.txt
MD5 (test.txt) = d8e8fca2dc0f896fd7cb4cb0031ba249
Arno@Computer:~% python
Python 2.5.1 (r251:54863, Jan 17 2008, 19:35:17)
[GCC 4.0.1 (Apple Inc. build 5465)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
''90364ed45b452d43378629c20543a81d''
甚至
echo -n" hello" | md5
没有返回相同的数字
gr
Arno
''90364ed45b452d43378629c20543a81d''
even
echo -n "hello" | md5
doesn''t return the same number
gr
Arno
''90364ed45b452d43378629c20543a81d''
''90364ed45b452d43378629c20543a81d''
你要打扰自己。 :-)
You''re going to smack yourself on the head over this one. :-)
-
D''Arcy JM Cain< da *** @ druid.net |民主是三只狼
|和一只羊投票
+1 416 425 1212(国防部#0082)(eNTP)|什么是晚餐。
--
D''Arcy J.M. Cain <da***@druid.net | Democracy is three wolves
http://www.druid.net/darcy/ | and a sheep voting on
+1 416 425 1212 (DoD#0082) (eNTP) | what''s for dinner.
这篇关于md5差异的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!