<p>I also am having trouble getting the hashes to match on a Windows system (MultiBit, Bitcoin-Qt .zip and .exe).  I am using Microsoft's "unsupported" tool that the "hash document" references.  I suspect that I will have better results using Linux.</p>

<p>In response to your specific issue, the "$"  at the beginning of the command is the actual prompt.  This implies the command is being entered in a linux\UNIX "shell" (i.e. bash shell).  If it were a windows system you would see something like "C:\User\Sam> echo "Hello world" > example.txt"  The command still works in windows, but as you pointed out the output file is different.  In Linux/UNIX the same command would yield a file with only: Hello world     No punctuation, extra spaces or lines.  Therefore, the hash would be different under linux vs windows following the same command-line input.</p>

CC BY-SA 3.0
2013-11-05T03:15:54.043Z
2013-11-05T03:15:54.043Z
John
<p>Running the same test on Windows 7, the FCIV program returned:</p>

<pre><code>25e64db6d4d1d6116ffe0b317918c98f3624cbed example.txt
</code></pre>

<p>Perhaps this is the same value you found.  The example.txt file is 16 bytes long and, in addition to the words, it contains two double-quote characters, a space, carriage-return and linefeed.</p>

<p>Trying the corresponding experiment under Linux, the 33ab... checksum was returned. There were a couple of differences in the text files between Windows in Linux: the double quotes and extra space were not in the file, and the line ending was a linefeed only. Using Notepad++, I was able to edit the Windows file to generate the same checksum by fixing the differences.</p>

<p>Bottom line, the writer should have tried his demonstration on all platforms before assuming the answer would be the same.</p>

CC BY-SA 3.0
2013-10-24T14:38:33.213Z
2013-10-24T14:38:33.213Z
Crispy
<p>This may seem trivial, but for someone who knows little about this lebvel of security and wanting to really get it right first time, I found it quite offputting ... whereas the suggested process should be confidence-building, no?</p>

<p>============================================</p>

<p>URL:  <a href="https://multibit.org/blog/2013/07/24/how-to-check-signatures.html" rel="nofollow">https://multibit.org/blog/2013/07/24/how-to-check-signatures.html</a></p>

<p>============================================</p>

<p>quoting:</p>

<p>Step 1 - SHA1 in action</p>

<p>The first step on the road to security is access to strong cryptography. We'll start by creating a simple one line text file:</p>

<p>$ echo "Hello world" > example.txt</p>

<p>The above has an expected SHA1 hash of 33ab5639bfd8e7b95eb1d8d0b87781d4ffea4d5d which we will now attempt to verify. Depending on your operating system you'll need to install a few applications in a particular order to establish a solid trust foundation.
Windows - install FCIV</p>

<p>Microsoft's File Checksum Integrity Verifier (FCIV) is a command line tool that provides access to SHA1 checksums.</p>

<p>Once installed, you can test it out on your example file as follows</p>

<blockquote>
  <p>fciv.exe -sha1 example.txt</p>
</blockquote>

<p>==================================</p>

<p>It was not clear to me precisely what the 'example.txt' file should contain.  If I entered the supplied line into a DOS box it didn't seem to work (in terms of creating a text file).  So I decided to create the text file myself..  Reading the line literally the text to include should be:</p>

<p>$ echo "Hello world" > example.txt</p>

<p>or maybe just:
$ echo "Hello world"</p>

<p>or maybe just
Hello world</p>

<p>??  Anyway, I tried loads of options and at no time could I get fciv.exe to generate the given key!!  >8-(</p>

<p>Giving up after 30 mins I tried the quick brown fox test easily found in Wikipedia and it worked first time, so the software is working and it is something to do with the suggested text file.</p>

<p>Sorry if this seems pedantic but if even very simple things don't check out, then it does not help confidence.</p>

<p>Cheers.</p>

CC BY-SA 3.0
2013-10-24T13:27:16.133Z
Sorry, but I find it difficult to see what your question here is.
Murch
<multibit>
Multibit - error (or at least confusion) in 'How to check digital signatures" info for noobs
Maertin Spencer
# Multibit - error (or at least confusion) in 'How to check digital signatures" info for noobs

(Asked by: username_0 on 2013-10-24)

This may seem trivial, but for someone who knows little about this lebvel of security and wanting to really get it right first time, I found it quite offputting ... whereas the suggested process should be confidence-building, no?

============================================

URL: <https://multibit.org/blog/2013/07/24/how-to-check-signatures.html>

============================================

quoting:

Step 1 - SHA1 in action

The first step on the road to security is access to strong cryptography. We'll start by creating a simple one line text file:

$ echo "Hello world" > example.txt

The above has an expected SHA1 hash of 33ab5639bfd8e7b95eb1d8d0b87781d4ffea4d5d which we will now attempt to verify. Depending on your operating system you'll need to install a few applications in a particular order to establish a solid trust foundation.
Windows - install FCIV

Microsoft's File Checksum Integrity Verifier (FCIV) is a command line tool that provides access to SHA1 checksums.

Once installed, you can test it out on your example file as follows

> fciv.exe -sha1 example.txt

==================================

It was not clear to me precisely what the 'example.txt' file should contain. If I entered the supplied line into a DOS box it didn't seem to work (in terms of creating a text file). So I decided to create the text file myself.. Reading the line literally the text to include should be:

$ echo "Hello world" > example.txt

or maybe just:
$ echo "Hello world"

or maybe just
Hello world

?? Anyway, I tried loads of options and at no time could I get fciv.exe to generate the given key!! >8-(

Giving up after 30 mins I tried the quick brown fox test easily found in Wikipedia and it worked first time, so the software is working and it is something to do with the suggested text file.

Sorry if this seems pedantic but if even very simple things don't check out, then it does not help confidence.

Cheers.

**Tags:** multibit

> **Comments:**
> **username_1**: Sorry, but I find it difficult to see what your question here is.  

---

## 2 answers

### Answer by username_2 on 2013-11-05. Score: 1

I also am having trouble getting the hashes to match on a Windows system (MultiBit, Bitcoin-Qt .zip and .exe). I am using Microsoft's "unsupported" tool that the "hash document" references. I suspect that I will have better results using Linux.

In response to your specific issue, the "$" at the beginning of the command is the actual prompt. This implies the command is being entered in a linux\UNIX "shell" (i.e. bash shell). If it were a windows system you would see something like "C:\User\Sam> echo "Hello world" > example.txt" The command still works in windows, but as you pointed out the output file is different. In Linux/UNIX the same command would yield a file with only: Hello world No punctuation, extra spaces or lines. Therefore, the hash would be different under linux vs windows following the same command-line input.


---

### Answer by username_3 on 2013-10-24. Score: 0

Running the same test on Windows 7, the FCIV program returned:

```
25e64db6d4d1d6116ffe0b317918c98f3624cbed example.txt

```

Perhaps this is the same value you found. The example.txt file is 16 bytes long and, in addition to the words, it contains two double-quote characters, a space, carriage-return and linefeed.

Trying the corresponding experiment under Linux, the 33ab... checksum was returned. There were a couple of differences in the text files between Windows in Linux: the double quotes and extra space were not in the file, and the line ending was a linefeed only. Using Notepad++, I was able to edit the Windows file to generate the same checksum by fixing the differences.

Bottom line, the writer should have tried his demonstration on all platforms before assuming the answer would be the same.


---

