Generate a cryptographically random Base64 password
Build a paste-ready command, then review its compatibility and effects before running it.
openssl rand -base64 <count>Complete required fields to copy the generated command.
read-onlyno known side effects Compatibility
Linux + macOS + WindowsVerified for Linux, macOS, Windows using bash, zsh, powershell syntax.
Operational knowledgereview due 2027-01-19
Requirementsopensslopenssl must be installed and available on PATH.
Version supportopenssl Current supported releasesVerified for linux, macos, windows using bash, zsh, powershell syntax; consult compatibility notes for platform-specific differences.
Expected signalsJQ1f4omQy8cF9WJylJ4+3uX5obGvQ3cRRepresentative successful output; values vary with the selected target and system state.
Known errorsopenssl: command not foundopenssl is missing or is not available on PATH.
Verifyopenssl rand -base64 {{count}}The output matches the expected target and exits without an error.Rollback noteNot required: this command is read-only and does not change system state.
Command breakdown
01opensslCommandRuns the openssl stage of this one-liner.
02randArgumentPasses rand to openssl.
03-base64OptionConfigures openssl with the -base64 option.
04<count>ParameterA value supplied in the Fill parameters section.
This advanced community-curated one-liner combines several stages. Review every option and placeholder before running it.
Example input
openssl rand -base64 24
Example output
JQ1f4omQy8cF9WJylJ4+3uX5obGvQ3cR
Illustrative output — exact values vary by system and data.
Official sources