<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://en.zaoniao.it/index.php?action=history&amp;feed=atom&amp;title=Sha1sum</id>
	<title>Sha1sum - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://en.zaoniao.it/index.php?action=history&amp;feed=atom&amp;title=Sha1sum"/>
	<link rel="alternate" type="text/html" href="http://en.zaoniao.it/index.php?title=Sha1sum&amp;action=history"/>
	<updated>2026-05-15T09:33:19Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.32.0</generator>
	<entry>
		<id>http://en.zaoniao.it/index.php?title=Sha1sum&amp;diff=6808&amp;oldid=prev</id>
		<title>Admin: Created page with &quot;'''sha1sum''' is a computer program that calculates and verifies SHA-1 hashes. It is commonly used to verify the integrity of files. It (or a variant) is installed by default...&quot;</title>
		<link rel="alternate" type="text/html" href="http://en.zaoniao.it/index.php?title=Sha1sum&amp;diff=6808&amp;oldid=prev"/>
		<updated>2019-07-12T11:37:45Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;#039;&amp;#039;&amp;#039;sha1sum&amp;#039;&amp;#039;&amp;#039; is a computer program that calculates and verifies SHA-1 hashes. It is commonly used to verify the integrity of files. It (or a variant) is installed by default...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;'''sha1sum''' is a computer program that calculates and verifies SHA-1 hashes. It is commonly used to verify the integrity of files. It (or a variant) is installed by default in most Unix-like operating systems.[citation needed] Variants include shasum (which permits SHA-1 through SHA-512 hash functions to be selected manually), sha224sum, sha256sum, sha384sum and sha512sum, which use a specific SHA-2 hash function, and sha3sum (which permits SHA-3 through SHA3-512, SHAKE, RawSHAKE and Keccak functions to be selected manually). Versions for Microsoft Windows also exist, and the ActivePerl distribution includes a perl implementation of shasum. On FreeBSD this utility is called sha512 and contains additional features.&lt;br /&gt;
&lt;br /&gt;
The SHA-1 variants are proven vulnerable to collision attacks, and users should use for example a SHA-2 variant such as sha256sum instead to prevent tampering by an adversary.&lt;br /&gt;
&lt;br /&gt;
It is included in GNU Core Utilities, Busybox and Toybox.&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
Several [[Source Code Management|source code management]] systems, including [[Git (software)|Git]], [[Mercurial (software)|Mercurial]], [[Monotone (software)|Monotone]], and [[Fossil (software)|Fossil]], use the sha1sum of various types of content (file content, directory trees, ancestry information, etc.) to uniquely identify them.&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
To create a file with an sha1 hash in it, if one is not provided:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;console&amp;quot;&amp;gt;&lt;br /&gt;
$ sha1sum filename [filename2] ... &amp;gt; SHA1SUM&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If distributing one file, &amp;quot;.sha1&amp;quot; may be appended to the filename e.g.:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;console&amp;quot;&amp;gt;&lt;br /&gt;
$ sha1sum my-zip.tar.gz &amp;gt; my-zip.tar.gz.sha1&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The output contains one line per file of the form &amp;quot;&amp;lt;code&amp;gt;{hash} SPACE ASTERISK [{directory} SLASH] {filename}&amp;lt;/code&amp;gt;&amp;quot;. For example:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;console&amp;quot;&amp;gt;&lt;br /&gt;
$ sha1sum -b my-zip.tar.gz&lt;br /&gt;
d5db29cd03a2ed055086cef9c31c252b4587d6d0 *my-zip.tar.gz&lt;br /&gt;
$ sha1sum -b subdir/filename2&lt;br /&gt;
55086cef9c87d6d031cd5db29cd03a2ed0252b45 *subdir/filename2&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
To verify the file was downloaded correctly:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;console&amp;quot;&amp;gt;&lt;br /&gt;
$ sha1sum -c SHA1SUM&lt;br /&gt;
filename: OK&lt;br /&gt;
filename2: OK&lt;br /&gt;
$ sha1sum -c my-zip.tar.gz.sha1&lt;br /&gt;
my-zip.tar.gz: OK&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Hash file trees===&lt;br /&gt;
sha1sum can only create checksums of one or multiple files inside a directory, but not of a directory tree, i.e. of subdirectories, sub-subdirectories, etc. and the files they contain. This is possible by using sha1sum in combination with the commands &amp;lt;tt&amp;gt;find&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;xargs&amp;lt;/tt&amp;gt; (and optionally with &amp;lt;tt&amp;gt;sort&amp;lt;/tt&amp;gt; so that the files are sorted in the checksum file).&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* &amp;lt;tt&amp;gt;[[cksum]]&amp;lt;/tt&amp;gt;&lt;br /&gt;
* [[Comparison of file verification software]]&lt;br /&gt;
&lt;br /&gt;
==Source==&lt;br /&gt;
[http://wikipedia.org/ http://wikipedia.org/]&lt;br /&gt;
&lt;br /&gt;
[[Category:Cryptographic algorithms]]&lt;br /&gt;
[[Category:Software]]&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
		
	</entry>
</feed>