PageRenderTime 54ms CodeModel.GetById 30ms RepoModel.GetById 0ms app.codeStats 0ms

/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
  1. CommandLine Hash Generator
  2. ------------------------------------------------------------------------
  3. About
  4. ¯¯¯¯¯
  5. cmdhashgen is a Command Line Utility that can be used to generate
  6. various hashes for a given String or File.
  7. Supported Hashes are CRC32, MD5, SHA-1, SHA-256, SHA-384 and SHA-512.
  8. Usage
  9. ¯¯¯¯¯
  10. cmdhashgen [ARGUMENTS] <Input String/Filename>
  11. If no Arguments are given, Input is assumed to be a file name and
  12. a SHA-1 Hash is Generated
  13. Arguments
  14. ¯¯¯¯¯¯¯¯¯
  15. /?, /help
  16. Display Usage Information and exit
  17. /s, /String
  18. Hash a String given as input, rather than a file
  19. /b, /bare
  20. Bare Output (No Header, No Summary)
  21. /a, /all
  22. Enable All Hashes
  23. /SHA1
  24. Calculate SHA-1 Hash of Input (Default if no Hash is specified)
  25. /SHA256
  26. Calculate SHA-256 Hash of Input
  27. /SHA384
  28. Calculate SHA-384 Hash of Input
  29. /SHA512
  30. Calculate SHA-512 Hash of Input
  31. /MD5
  32. Calculate MD5 Hash of Input
  33. /CRC32
  34. Calculate CRC32 Hash of Input (IEEE 802.3 version)
  35. Example: Hashing a File with MD5
  36. ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
  37. To Hash a file using MD5, use this Command Line:
  38. cmdhashgen.exe /MD5 debian-501-i386-netinst.iso
  39. This will generate this Output:
  40. Hashing [File] "f:\debian-501-i386-netinst.iso"
  41. [MD5]
  42. bce5d45233e563e65e1ca43e8bd9f2b5
  43. Example: Hashing a String with SHA-1 and SHA-256
  44. ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
  45. If you want to hash a UTF-8 string instead of a file, use the /s argument:
  46. cmdhashgen.exe /SHA1 /SHA256 /String "The quick brown fox jumps over the lazy dog"
  47. This generates this Output:
  48. Hashing [String] "The quick brown fox jumps over the lazy dog"
  49. [SHA-1]
  50. 2fd4e1c67a2d28fced849ee1bb76e7391b93eb12
  51. [SHA-256]
  52. d7a8fbb307d7809469ca9abcb0082e4f8d5651e46d3cdb762d02d0bf37c9e592
  53. Example: The /a and /b Parameters
  54. ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
  55. /a is simply a Shortcut to enable all hash functions, so it's equivalent to
  56. /MD5 /SHA1 /SHA256 /SHA384 /SHA512 /CRC32
  57. /b is a bare output, without any Headers:
  58. cmdhashgen.exe /a /b debian-501-i386-netinst.iso
  59. generates this output (Hash Input Algorithm):
  60. 23b25b6b debian-501-i386-netinst.iso CRC32
  61. bce5d45233e563e65e1ca43e8bd9f2b5 debian-501-i386-netinst.iso MD5
  62. 5219b39051052300489bb7493f5ec83dbd2f8cd8 debian-501-i386-netinst.iso SHA-1
  63. 1af135975ba901f2f088fdb69e5e24d476766c24193f0e545c8d51682de1b03d debian-501-i386-netinst.iso SHA-256
  64. 6919ad744fce8344966810ea9f9a26d0764ef6522a4739f0fce05dac9f60f248ce5fca30eb9d2dd76a40c05c50c68953 debian-501-i386-netinst.iso SHA-384
  65. 447d79e97cdef8c411496807b584ee626a3a8b7fcf1cb67c05d85c3c4ef1c06317f909d94cd2ebae0aed149b7f87d7cbd7ab83d212df9a560c35e6fb811cf4fa debian-501-i386-netinst.iso SHA-512
  66. Empty String Hashes
  67. ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
  68. Here is the example output of
  69. cmdhashgen.exe /CRC32 /MD5 /SHA1 /SHA256 /SHA384 /SHA512 /String ""
  70. (Line-Breaks added by me for better readibility)
  71. [CRC32]
  72. 00000000
  73. [MD5]
  74. d41d8cd98f00b204e9800998ecf8427e
  75. [SHA-1]
  76. da39a3ee5e6b4b0d3255bfef95601890afd80709
  77. [SHA-256]
  78. e3b0c44298fc1c149afbf4c8996fb924
  79. 27ae41e4649b934ca495991b7852b855
  80. [SHA-384]
  81. 38b060a751ac96384cd9327eb1b1e36a
  82. 21fdb71114be07434c0cc7bf63f6e1da
  83. 274edebfe76f65fbd51ad2f14898b95b
  84. [SHA-512]
  85. cf83e1357eefb8bdf1542850d66d8007
  86. d620e4050b5715dc83f4a921d36ce9ce
  87. 47d0d13c5d85f2b0ff8318d2877eec2f
  88. 63b931bd47417a81a538327af927da3e
  89. "quick brown fox" Hashes
  90. ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
  91. Here is the example output of
  92. cmdhashgen.exe /CRC32 /MD5 /SHA1 /SHA256 /SHA384 /SHA512 /String "The quick brown fox jumps over the lazy dog"
  93. (Line-Breaks added by me for better readibility)
  94. [CRC32]
  95. 414fa339
  96. [MD5]
  97. 9e107d9d372bb6826bd81d3542a419d6
  98. [SHA-1]
  99. 2fd4e1c67a2d28fced849ee1bb76e7391b93eb12
  100. [SHA-256]
  101. d7a8fbb307d7809469ca9abcb0082e4f
  102. 8d5651e46d3cdb762d02d0bf37c9e592
  103. [SHA-384]
  104. ca737f1014a48f4c0b6dd43cb177b0af
  105. d9e5169367544c494011e3317dbf9a50
  106. 9cb1e5dc1e85a941bbee3d7f2afbc9b1
  107. [SHA-512]
  108. 07e547d9586f6a73f73fbac0435ed769
  109. 51218fb7d0c8d788a309d785436bbb64
  110. 2e93a252a954f23912547d1e8a3b5ed6
  111. e1bfd7097821233fa0538f3db854fee6
  112. LICENSE
  113. ¯¯¯¯¯¯¯
  114. This program is free software; you can redistribute it and/or
  115. modify it under the terms of the GNU General Public License
  116. as published by the Free Software Foundation, Version 2, June 1991.
  117. This program is distributed in the hope that it will be useful,
  118. but WITHOUT ANY WARRANTY; without even the implied warranty of
  119. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  120. GNU General Public License for more details.
  121. You should have received a copy of the GNU General Public License
  122. along with this program; if not, you can find it on the GNU Website:
  123. http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt
  124. ------------------------------------------------------------------------
  125. © 2009 Michael Stum · http://www.Stum.de · http://cmdtools.codeplex.com/