passwd.pod 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. =pod
  2. =head1 NAME
  3. passwd - compute password hashes
  4. =head1 SYNOPSIS
  5. B<openssl passwd>
  6. [B<-crypt>]
  7. [B<-1>]
  8. [B<-apr1>]
  9. [B<-salt> I<string>]
  10. [B<-in> I<file>]
  11. [B<-stdin>]
  12. [B<-noverify>]
  13. [B<-quiet>]
  14. [B<-table>]
  15. {I<password>}
  16. =head1 DESCRIPTION
  17. The B<passwd> command computes the hash of a password typed at
  18. run-time or the hash of each password in a list. The password list is
  19. taken from the named file for option B<-in file>, from stdin for
  20. option B<-stdin>, or from the command line, or from the terminal otherwise.
  21. The Unix standard algorithm B<crypt> and the MD5-based BSD password
  22. algorithm B<1> and its Apache variant B<apr1> are available.
  23. =head1 OPTIONS
  24. =over 4
  25. =item B<-crypt>
  26. Use the B<crypt> algorithm (default).
  27. =item B<-1>
  28. Use the MD5 based BSD password algorithm B<1>.
  29. =item B<-apr1>
  30. Use the B<apr1> algorithm (Apache variant of the BSD algorithm).
  31. =item B<-salt> I<string>
  32. Use the specified salt.
  33. When reading a password from the terminal, this implies B<-noverify>.
  34. =item B<-in> I<file>
  35. Read passwords from I<file>.
  36. =item B<-stdin>
  37. Read passwords from B<stdin>.
  38. =item B<-noverify>
  39. Don't verify when reading a password from the terminal.
  40. =item B<-quiet>
  41. Don't output warnings when passwords given at the command line are truncated.
  42. =item B<-table>
  43. In the output list, prepend the cleartext password and a TAB character
  44. to each password hash.
  45. =back
  46. =head1 EXAMPLES
  47. B<openssl passwd -crypt -salt xx password> prints B<xxj31ZMTZzkVA>.
  48. B<openssl passwd -1 -salt xxxxxxxx password> prints B<$1$xxxxxxxx$UYCIxa628.9qXjpQCjM4a.>.
  49. B<openssl passwd -apr1 -salt xxxxxxxx password> prints B<$apr1$xxxxxxxx$dxHfLAsjHkDRmG83UXe8K0>.
  50. =cut