檔案結尾的問題 - Linux

By Jacob
at 2012-07-29T15:34
at 2012-07-29T15:34
Table of Contents
其實我真正的問題是這樣的,要計算短字串的 MD5 碼,但是覺得不對。
CASE1:
$ md5sum [enter]
$ mystring [ctrl + d]
$ [ctrl + d] → 出現 md5 值
CASE2:
$ md5sum [enter]
$ mystring [enter]
$ [ctrl + d] → 出現 md5 值
CASE3
在 vi 裡寫 mystring 沒按換行直接存檔
居然 有 9 bytes
$ md5sum file
$ → 居然出現與 CASE1 和 CASE2 都相同的 md5 值
嗚嗚…我只是要一個乾淨的 MD5 雜湊值啊…誰來救我
--
--
CASE1:
$ md5sum [enter]
$ mystring [ctrl + d]
$ [ctrl + d] → 出現 md5 值
CASE2:
$ md5sum [enter]
$ mystring [enter]
$ [ctrl + d] → 出現 md5 值
CASE3
在 vi 裡寫 mystring 沒按換行直接存檔
居然 有 9 bytes
$ md5sum file
$ → 居然出現與 CASE1 和 CASE2 都相同的 md5 值
嗚嗚…我只是要一個乾淨的 MD5 雜湊值啊…誰來救我
--
--
Tags:
Linux
All Comments

By Susan
at 2012-07-31T19:41
at 2012-07-31T19:41
Related Posts
GNOME面臨停滯和衰退

By Skylar Davis
at 2012-07-29T10:23
at 2012-07-29T10:23
檔案結尾的問題

By Liam
at 2012-07-29T09:22
at 2012-07-29T09:22
Ubuntu顯示不正常

By Cara
at 2012-07-28T22:54
at 2012-07-28T22:54
Fedora16更新後FTP連不上

By Rosalind
at 2012-07-28T17:30
at 2012-07-28T17:30
路徑問題

By Agatha
at 2012-07-28T17:21
at 2012-07-28T17:21