This repository contains the Dockerfile for the mkpasswd image. This image allows you to generate secure passwords using the mkpasswd command.
Use the latest tag to get the latest stable release of the image.
This Docker container allows you to generate passwords using mkpasswd from the whois package with customizable options.
You can run this Docker container directly using the command line. By default, it uses SHA-512 as the hashing method.
docker run --rm -it serversideup/mkpasswdThis command will output a salted hash which you can use directly.
To specify a different hashing method, you can provide the --method option followed by the method name.
docker run --rm -it serversideup/mkpasswd --method=md5crypt| Method Name | Hash |
|---|---|
| sha512crypt | SHA-512 |
| sha256crypt | SHA-256 |
| md5crypt | MD5 |
| descrypt | standard 56 bit DES-based crypt(3) |
You can always run the -m help command to view all available methods.
docker run --rm -it serversideup/mkpasswd -m help
To add a specific salt, use the -S option followed by your desired salt value.
docker run --rm -it serversideup/mkpasswd --method=sha-512 -S mysaltThis command uses SHA-512 with a custom salt, enhancing the security of the generated hash.
The default behavior without any additional arguments is to generate a salted hash using the SHA-512 method. If no specific salt is provided, mkpasswd automatically generates a random salt.
Here are some examples of how to use this Docker image:
-
Generate a default SHA-512 salted hash:
docker run --rm -it serversideup/mkpasswd
-
Generate a hash using MD5 without a salt:
docker run --rm -it serversideup/mkpasswd --method=md5crypt
-
Generate a hash using SHA-512 with a specified salt:
docker run --rm -it serversideup/mkpasswd --method=sha-512 -S mysalt
These examples should help you get started with generating passwords securely using the Docker container.
Please feel free to open an issue or submit a pull request if you encounter any problems. We're always learning and open to suggestions.
If you find a bug or issue, please submit an issue β
Since there are a lot of dependencies on these images, please understand that it can make it complicated on merging your pull request.
We'd love to have your help, but it might be best to explain your intentions first before contributing.
If you find a critical security flaw, please open an issue or learn more about our responsible disclosure policy.
All of our software is free and open to the world. None of this can be brought to you without the financial backing of our sponsors.
These companies give us free access to the tools and infrastructure we use to build, test, and ship our open source projects. Their support helps our entire community.
We're Dan and Jay - a two-person team with a passion for open source products. We created Server Side Up to help share what we learn.
Get two senior Laravel experts who deliver quality code with predictable monthly pricing. Dan and Jay have 30+ years of combined experience building scalable Laravel applications.
- π― Complete Laravel expertise - Full-stack development, CI/CD, database optimization, mobile apps
- π° Predictable pricing - Fixed monthly subscription, no hourly billing surprises, 40%+ savings
- β‘ Maximum productivity - 90%+ development time, no meetings, results in days not weeks
- π‘οΈ Risk-free - 7-day money-back guarantee, cancel anytime
- π Blog - Get the latest guides and free courses on all things web/mobile development.
- π Community - Get friendly help from our community members.
- π€΅ββοΈ Get Professional Help - Get video + screen-sharing support from the core contributors.
- π» GitHub - Check out our other open source projects.
- π« Newsletter - Skip the algorithms and get quality content right to your inbox.
- π₯ X (Twitter) - You can also follow Dan and Jay.
- β€οΈ Sponsor Us - Please consider sponsoring us so we can create more helpful resources.
If you appreciate this project, be sure to check out our other projects.
- Self-Host Pro: Sell self-hosted software in minutes.
- Spin Pro: Production-ready Docker templates for shipping quickly.
- serversideup/php: Supercharged PHP Docker images, based off the official PHP images.
- Spin: Docker Simplified. Deploy Anywhere. Zero Downtime. Any OS.
- Financial Freedom: Open source alternative to Mint, YNAB, and more.
- AmplitudeJS: Customize the design of any element of the HTML5 Audio Player.
- webext-bridge: Messaging in Web Extensions made easy. Batteries included.
- serversideup/ansible: Run Ansible anywhere with a lightweight and powerful Docker image.
- Building Browser Extensions: Build browser extensions for Firefox, Chrome, and more.
- Ultimate Guide To Building APIs & SPAs: Build web and mobile apps from the same codebase.







