Skip to content

About

A simple and lightweight mkpasswd image based on Alpine. Great for generating password hashes.

Topics

Resources

Stars

1 star

Watchers

2 watching

Forks

Latest commit

Β 

History

27 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Docker Images Logo

Build Status License Support us Discourse users Discord

About this project

This repository contains the Dockerfile for the mkpasswd image. This image allows you to generate secure passwords using the mkpasswd command.

Available Docker Images

Use the latest tag to get the latest stable release of the image.

Docker Image Size

Usage

This Docker container allows you to generate passwords using mkpasswd from the whois package with customizable options.

Running the Container

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/mkpasswd

This command will output a salted hash which you can use directly.

Customizing Password Generation

Specifying a Method

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

Available methods

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

Adding Salt

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 mysalt

This command uses SHA-512 with a custom salt, enhancing the security of the generated hash.

Defaults

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.

Examples

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.

Submitting issues and pull requests

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.

Submit an issue

If you find a bug or issue, please submit an issue β†’

Submit a pull request

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.

Report a security issue

If you find a critical security flaw, please open an issue or learn more about our responsible disclosure policy.

Our Sponsors

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.

Become a sponsor

Platinum Sponsors

Sevalla

Silver Sponsors

GiGa infosystems

Infrastructure 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.

DepotΒ Β Docker

About Us

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.

Dan Pastori
Jay Rogers


Hire Us

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

πŸ’¬ Discuss Your Project β†’

Find us at:

  • πŸ“– 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.

Our Products

If you appreciate this project, be sure to check out our other projects.

πŸ› οΈ Premium

  • Self-Host Pro: Sell self-hosted software in minutes.
  • Spin Pro: Production-ready Docker templates for shipping quickly.

🌍 Open Source

  • 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.

πŸ“š Books

About

A simple and lightweight mkpasswd image based on Alpine. Great for generating password hashes.

Topics

Resources

Stars

1 star

Watchers

2 watching

Forks

Sponsor this project

Used by

Contributors

Languages