openssl-passwd.html 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  1. <?xml version="1.0" ?>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4. <head>
  5. <title>openssl-passwd</title>
  6. <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  7. <link rev="made" href="mailto:root@localhost" />
  8. </head>
  9. <body>
  10. <ul id="index">
  11. <li><a href="#NAME">NAME</a></li>
  12. <li><a href="#SYNOPSIS">SYNOPSIS</a></li>
  13. <li><a href="#DESCRIPTION">DESCRIPTION</a></li>
  14. <li><a href="#OPTIONS">OPTIONS</a></li>
  15. <li><a href="#EXAMPLES">EXAMPLES</a></li>
  16. <li><a href="#HISTORY">HISTORY</a></li>
  17. <li><a href="#COPYRIGHT">COPYRIGHT</a></li>
  18. </ul>
  19. <h1 id="NAME">NAME</h1>
  20. <p>openssl-passwd - compute password hashes</p>
  21. <h1 id="SYNOPSIS">SYNOPSIS</h1>
  22. <p><b>openssl passwd</b> [<b>-help</b>] [<b>-1</b>] [<b>-apr1</b>] [<b>-aixmd5</b>] [<b>-5</b>] [<b>-6</b>] [<b>-salt</b> <i>string</i>] [<b>-in</b> <i>file</i>] [<b>-stdin</b>] [<b>-noverify</b>] [<b>-quiet</b>] [<b>-table</b>] [<b>-reverse</b>] [<b>-rand</b> <i>files</i>] [<b>-writerand</b> <i>file</i>] [<b>-provider</b> <i>name</i>] [<b>-provider-path</b> <i>path</i>] [<b>-propquery</b> <i>propq</i>] [<i>password</i>]</p>
  23. <h1 id="DESCRIPTION">DESCRIPTION</h1>
  24. <p>This command computes the hash of a password typed at run-time or the hash of each password in a list. The password list is taken from the named file for option <b>-in</b>, from stdin for option <b>-stdin</b>, or from the command line, or from the terminal otherwise.</p>
  25. <h1 id="OPTIONS">OPTIONS</h1>
  26. <dl>
  27. <dt id="help"><b>-help</b></dt>
  28. <dd>
  29. <p>Print out a usage message.</p>
  30. </dd>
  31. <dt id="pod-1"><b>-1</b></dt>
  32. <dd>
  33. <p>Use the MD5 based BSD password algorithm <b>1</b> (default).</p>
  34. </dd>
  35. <dt id="apr1"><b>-apr1</b></dt>
  36. <dd>
  37. <p>Use the <b>apr1</b> algorithm (Apache variant of the BSD algorithm).</p>
  38. </dd>
  39. <dt id="aixmd5"><b>-aixmd5</b></dt>
  40. <dd>
  41. <p>Use the <b>AIX MD5</b> algorithm (AIX variant of the BSD algorithm).</p>
  42. </dd>
  43. <dt id="pod-5"><b>-5</b></dt>
  44. <dd>
  45. </dd>
  46. <dt id="pod-6"><b>-6</b></dt>
  47. <dd>
  48. <p>Use the <b>SHA256</b> / <b>SHA512</b> based algorithms defined by Ulrich Drepper. See <a href="https://www.akkadia.org/drepper/SHA-crypt.txt">https://www.akkadia.org/drepper/SHA-crypt.txt</a>.</p>
  49. </dd>
  50. <dt id="salt-string"><b>-salt</b> <i>string</i></dt>
  51. <dd>
  52. <p>Use the specified salt. When reading a password from the terminal, this implies <b>-noverify</b>.</p>
  53. </dd>
  54. <dt id="in-file"><b>-in</b> <i>file</i></dt>
  55. <dd>
  56. <p>Read passwords from <i>file</i>.</p>
  57. </dd>
  58. <dt id="stdin"><b>-stdin</b></dt>
  59. <dd>
  60. <p>Read passwords from <b>stdin</b>.</p>
  61. </dd>
  62. <dt id="noverify"><b>-noverify</b></dt>
  63. <dd>
  64. <p>Don&#39;t verify when reading a password from the terminal.</p>
  65. </dd>
  66. <dt id="quiet"><b>-quiet</b></dt>
  67. <dd>
  68. <p>Don&#39;t output warnings when passwords given at the command line are truncated.</p>
  69. </dd>
  70. <dt id="table"><b>-table</b></dt>
  71. <dd>
  72. <p>In the output list, prepend the cleartext password and a TAB character to each password hash.</p>
  73. </dd>
  74. <dt id="reverse"><b>-reverse</b></dt>
  75. <dd>
  76. <p>When the <b>-table</b> option is used, reverse the order of cleartext and hash.</p>
  77. </dd>
  78. <dt id="rand-files--writerand-file"><b>-rand</b> <i>files</i>, <b>-writerand</b> <i>file</i></dt>
  79. <dd>
  80. <p>See <a href="../man1/openssl.html">&quot;Random State Options&quot; in openssl(1)</a> for details.</p>
  81. </dd>
  82. <dt id="provider-name"><b>-provider</b> <i>name</i></dt>
  83. <dd>
  84. </dd>
  85. <dt id="provider-path-path"><b>-provider-path</b> <i>path</i></dt>
  86. <dd>
  87. </dd>
  88. <dt id="propquery-propq"><b>-propquery</b> <i>propq</i></dt>
  89. <dd>
  90. <p>See <a href="../man1/openssl.html">&quot;Provider Options&quot; in openssl(1)</a>, <a href="../man7/provider.html">provider(7)</a>, and <a href="../man7/property.html">property(7)</a>.</p>
  91. </dd>
  92. </dl>
  93. <h1 id="EXAMPLES">EXAMPLES</h1>
  94. <pre><code>% openssl passwd -1 -salt xxxxxxxx password
  95. $1$xxxxxxxx$UYCIxa628.9qXjpQCjM4a.
  96. % openssl passwd -apr1 -salt xxxxxxxx password
  97. $apr1$xxxxxxxx$dxHfLAsjHkDRmG83UXe8K0
  98. % openssl passwd -aixmd5 -salt xxxxxxxx password
  99. xxxxxxxx$8Oaipk/GPKhC64w/YVeFD/</code></pre>
  100. <h1 id="HISTORY">HISTORY</h1>
  101. <p>The <b>-crypt</b> option was removed in OpenSSL 3.0.</p>
  102. <h1 id="COPYRIGHT">COPYRIGHT</h1>
  103. <p>Copyright 2000-2021 The OpenSSL Project Authors. All Rights Reserved.</p>
  104. <p>Licensed under the Apache License 2.0 (the &quot;License&quot;). You may not use this file except in compliance with the License. You can obtain a copy in the file LICENSE in the source distribution or at <a href="https://www.openssl.org/source/license.html">https://www.openssl.org/source/license.html</a>.</p>
  105. </body>
  106. </html>