OPENSSL-PASSWD(1ossl)

πŸ“¦
version 15.1 Β· 2 versions
, in freebsd 15.1

πŸ’– OPENSSL-PASSWD πŸ’–

okay so bestie, welcome to openssl-passwd from the 1ossl manual section β€” yes the whole page is literally just about computing password hashes, and honestly? it ate. let's go 🌸


✨ NAME ✨

openssl-passwd β€” compute password hashes πŸ’…


✨ SYNOPSIS ✨

openssl passwd [-help] [-1] [-apr1] [-aixmd5] [-5] [-6] [-salt string]
[-in file] [-stdin] [-noverify] [-quiet] [-table] [-reverse] [-rand
files] [-writerand file] [-provider name] [-provider-path path]
[-provparam [name:]key=value] [-propquery propq] [password]

✨ DESCRIPTION ✨

So like, this command computes the hash of a password you type in at run-time, OR the hash of every single password in a list. iconic behavior fr fr 🫢

Where does that list come from, you ask? pick your fighter:

  • the named file, if you use the -in option πŸ“
  • stdin, if you use the -stdin option
  • the command line
  • or the terminal, otherwise (default vibe ✨)

✨ OPTIONS ✨

  • -help β€” prints out a usage message. that's it. that's the whole thing πŸ’–
  • -1 β€” use the MD5 based BSD password algorithm 1. this one is the default, no cap πŸ‘‘
  • -apr1 β€” use the apr1 algorithm (the Apache variant of the BSD algorithm) πŸ¦‹
  • -aixmd5 β€” use the AIX MD5 algorithm (the AIX variant of the BSD algorithm) 🌈
  • -5, -6 β€” use the SHA256 / SHA512 based algorithms defined by Ulrich Drepper. lowkey legendary. see <https://www.akkadia.org/drepper/SHA-crypt.txt> for the details πŸ“š
  • -salt string β€” use the specified salt. heads up: when you're reading a password from the terminal, this implies -noverify πŸ§‚
  • -in file β€” read passwords from file πŸ“„
  • -stdin β€” read passwords from stdin ⌨️
  • -noverify β€” don't verify when reading a password from the terminal. skipping the vibe check, we love a bold choice πŸ™ˆ
  • -quiet β€” don't output warnings when passwords given at the command line are truncated 🀫
  • -table β€” in the output list, prepend the cleartext password and a TAB character to each password hash πŸŽ€
  • -reverse β€” when the -table option is used, reverse the order of cleartext and hash πŸ”„
  • -rand files, -writerand file β€” see "Random State Options" in openssl(1) for details 🎲
  • -provider name, -provider-path path, -provparam [name:]key=value, -propquery propq β€” see "Provider Options" in openssl(1), provider(7), and property(7) πŸ’œ

✨ EXAMPLES ✨

main character demo time, look at these slay πŸ”₯

% openssl passwd -1 -salt xxxxxxxx password
$1$xxxxxxxx$UYCIxa628.9qXjpQCjM4a.

% openssl passwd -apr1 -salt xxxxxxxx password
$apr1$xxxxxxxx$dxHfLAsjHkDRmG83UXe8K0

% openssl passwd -aixmd5 -salt xxxxxxxx password
xxxxxxxx$8Oaipk/GPKhC64w/YVeFD/

✨ HISTORY ✨

ngl, the -crypt option was removed in OpenSSL 3.0. she's gone, periodt πŸ’€


Copyright 2000-2021 The OpenSSL Project Authors. All Rights Reserved.

Licensed under the Apache License 2.0 (the "License"). 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 <https://www.openssl.org/source/license.html>. πŸŽ€


okay that's the whole page bestie, ily, go hash something πŸ§šπŸ’–

this cutie was brought to you by version 3.5.6, dated 2026-04-07, from the OPENSSL-PASSWD(1ossl) manual β€” see you in the group chat πŸ¦‹βœ¨

πŸ“¦ where this page comes from