File: hash.htm

package info (click to toggle)
p7zip 16.02%2Bdfsg-8
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 14,148 kB
  • sloc: cpp: 167,145; ansic: 14,992; python: 1,911; asm: 1,688; sh: 1,132; makefile: 703
file content (65 lines) | stat: -rw-r--r-- 1,837 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
  <META http-equiv="Content-Type" content="text/html; charset=Windows-1252">
  <TITLE>h (Hash) command</TITLE>
  <LINK href="style.css" rel="stylesheet" type="text/css">
</HEAD>

<BODY>

<H1>h (Hash) command</H1>

<P>Calculate hash values for files.</P>

<H4>Syntax</H4>

<PRE class="syntax">
h [-scrc{Method}] [files]
</PRE>

<P>Supported methods: CRC32, CRC64, SHA1, SHA256, BLAKE2sp. Default method is CRC32.</P>

<H4>Examples</H4>

<PRE class="example">
7z h a.txt
</PRE>

<P>calculates CRC32 for <SPAN class="filename">a.txt</SPAN>.</P>

<PRE class="example">
7z h -scrcsha256 a.iso
</PRE>

<P>calculates SHA256 for <SPAN class="filename">a.iso</SPAN>.</P>

<PRE class="example">
7z h *
</PRE>

<P>calculates CRC32 for all files in current folder and all subfolders.</P>

<H4>Notes</H4>

<P>7-Zip shows hash values for each file, the sum of hash values and 
the sum that includes all hash values of data and all hash values for filenames.</P>

<P>7-Zip represents hash values for CRC32 and CRC64 as integer numbers in hex.</P> 
<P>7-Zip represents hash values For SHA1, SHA256 and BLAKE2sp as sequence of bytes in hex.</P>

<H4>Switches that can be used with this command</H4>

<P>
  <A href="../switches/include.htm">-i (Include)</A><BR>
  <A href="../switches/method.htm">-m (Method)</A><BR>
  <A href="../switches/recurse.htm">-r (Recurse)</A><BR>
  <A href="../switches/scrc.htm">-scrc (Set hash method)</A><BR>
  <A href="../switches/stdin.htm">-si (use StdIn)</A><BR>
  <A href="../switches/sns.htm">-sns (Store NTFS alternate Streams)</A><BR>
  <A href="../switches/shared.htm">-ssw (Compress shared files)</A><BR>
  <A href="../switches/exclude.htm">-x (Exclude)</A>
</P>

</BODY>
</HTML>