/cmdhashgen/doc/Documentation.txt
Plain Text | 171 lines | 125 code | 46 blank | 0 comment | 0 complexity | 9b7282391c16b24e4339646952825e7a MD5 | raw file
Possible License(s): GPL-2.0
- CommandLine Hash Generator
- ------------------------------------------------------------------------
-
- About
- ¯¯¯¯¯
- cmdhashgen is a Command Line Utility that can be used to generate
- various hashes for a given String or File.
-
- Supported Hashes are CRC32, MD5, SHA-1, SHA-256, SHA-384 and SHA-512.
-
- Usage
- ¯¯¯¯¯
- cmdhashgen [ARGUMENTS] <Input String/Filename>
-
- If no Arguments are given, Input is assumed to be a file name and
- a SHA-1 Hash is Generated
-
- Arguments
- ¯¯¯¯¯¯¯¯¯
- /?, /help
- Display Usage Information and exit
-
- /s, /String
- Hash a String given as input, rather than a file
-
- /b, /bare
- Bare Output (No Header, No Summary)
-
- /a, /all
- Enable All Hashes
-
- /SHA1
- Calculate SHA-1 Hash of Input (Default if no Hash is specified)
-
- /SHA256
- Calculate SHA-256 Hash of Input
-
- /SHA384
- Calculate SHA-384 Hash of Input
-
- /SHA512
- Calculate SHA-512 Hash of Input
-
- /MD5
- Calculate MD5 Hash of Input
-
- /CRC32
- Calculate CRC32 Hash of Input (IEEE 802.3 version)
-
- Example: Hashing a File with MD5
- ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
- To Hash a file using MD5, use this Command Line:
- cmdhashgen.exe /MD5 debian-501-i386-netinst.iso
-
- This will generate this Output:
-
- Hashing [File] "f:\debian-501-i386-netinst.iso"
-
- [MD5]
- bce5d45233e563e65e1ca43e8bd9f2b5
-
- Example: Hashing a String with SHA-1 and SHA-256
- ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
- If you want to hash a UTF-8 string instead of a file, use the /s argument:
- cmdhashgen.exe /SHA1 /SHA256 /String "The quick brown fox jumps over the lazy dog"
-
- This generates this Output:
-
- Hashing [String] "The quick brown fox jumps over the lazy dog"
-
- [SHA-1]
- 2fd4e1c67a2d28fced849ee1bb76e7391b93eb12
-
- [SHA-256]
- d7a8fbb307d7809469ca9abcb0082e4f8d5651e46d3cdb762d02d0bf37c9e592
-
- Example: The /a and /b Parameters
- ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
- /a is simply a Shortcut to enable all hash functions, so it's equivalent to
- /MD5 /SHA1 /SHA256 /SHA384 /SHA512 /CRC32
-
- /b is a bare output, without any Headers:
-
- cmdhashgen.exe /a /b debian-501-i386-netinst.iso
- generates this output (Hash Input Algorithm):
-
- 23b25b6b debian-501-i386-netinst.iso CRC32
- bce5d45233e563e65e1ca43e8bd9f2b5 debian-501-i386-netinst.iso MD5
- 5219b39051052300489bb7493f5ec83dbd2f8cd8 debian-501-i386-netinst.iso SHA-1
- 1af135975ba901f2f088fdb69e5e24d476766c24193f0e545c8d51682de1b03d debian-501-i386-netinst.iso SHA-256
- 6919ad744fce8344966810ea9f9a26d0764ef6522a4739f0fce05dac9f60f248ce5fca30eb9d2dd76a40c05c50c68953 debian-501-i386-netinst.iso SHA-384
- 447d79e97cdef8c411496807b584ee626a3a8b7fcf1cb67c05d85c3c4ef1c06317f909d94cd2ebae0aed149b7f87d7cbd7ab83d212df9a560c35e6fb811cf4fa debian-501-i386-netinst.iso SHA-512
-
- Empty String Hashes
- ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
- Here is the example output of
- cmdhashgen.exe /CRC32 /MD5 /SHA1 /SHA256 /SHA384 /SHA512 /String ""
- (Line-Breaks added by me for better readibility)
-
- [CRC32]
- 00000000
-
- [MD5]
- d41d8cd98f00b204e9800998ecf8427e
-
- [SHA-1]
- da39a3ee5e6b4b0d3255bfef95601890afd80709
-
- [SHA-256]
- e3b0c44298fc1c149afbf4c8996fb924
- 27ae41e4649b934ca495991b7852b855
-
- [SHA-384]
- 38b060a751ac96384cd9327eb1b1e36a
- 21fdb71114be07434c0cc7bf63f6e1da
- 274edebfe76f65fbd51ad2f14898b95b
-
- [SHA-512]
- cf83e1357eefb8bdf1542850d66d8007
- d620e4050b5715dc83f4a921d36ce9ce
- 47d0d13c5d85f2b0ff8318d2877eec2f
- 63b931bd47417a81a538327af927da3e
-
- "quick brown fox" Hashes
- ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
- Here is the example output of
- cmdhashgen.exe /CRC32 /MD5 /SHA1 /SHA256 /SHA384 /SHA512 /String "The quick brown fox jumps over the lazy dog"
- (Line-Breaks added by me for better readibility)
-
- [CRC32]
- 414fa339
-
- [MD5]
- 9e107d9d372bb6826bd81d3542a419d6
-
- [SHA-1]
- 2fd4e1c67a2d28fced849ee1bb76e7391b93eb12
-
- [SHA-256]
- d7a8fbb307d7809469ca9abcb0082e4f
- 8d5651e46d3cdb762d02d0bf37c9e592
-
- [SHA-384]
- ca737f1014a48f4c0b6dd43cb177b0af
- d9e5169367544c494011e3317dbf9a50
- 9cb1e5dc1e85a941bbee3d7f2afbc9b1
-
- [SHA-512]
- 07e547d9586f6a73f73fbac0435ed769
- 51218fb7d0c8d788a309d785436bbb64
- 2e93a252a954f23912547d1e8a3b5ed6
- e1bfd7097821233fa0538f3db854fee6
-
- LICENSE
- ¯¯¯¯¯¯¯
- This program is free software; you can redistribute it and/or
- modify it under the terms of the GNU General Public License
- as published by the Free Software Foundation, Version 2, June 1991.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program; if not, you can find it on the GNU Website:
- http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt
-
-
- ------------------------------------------------------------------------
- © 2009 Michael Stum · http://www.Stum.de · http://cmdtools.codeplex.com/