Skip to content

Docker recipe to build a mkpasswd tool image

License

Notifications You must be signed in to change notification settings

fscm/docker-mkpasswd

Repository files navigation

mkpasswd for Docker

A small image that can be used to run the mkpasswd tool from the whois project.

Supported tags

What is mkpasswd?

mkpasswd tool encrypts a given password with the crypt(3) libc function using a given salt.

Getting Started

There are a couple of things needed for the script to work.

Prerequisites

Docker, either the Community Edition (CE) or Enterprise Edition (EE), needs to be installed on your local computer.

Docker

Docker installation instructions can be found here.

Usage

To start a container with this image and run the tool (in interactive mode) use the following command (the container will be deleted after exiting the shell):

docker container run --rm --interactive --tty fscm/mkpasswd

To do the same in a non-interactive node add the password that you wish to encrypt at the end of the previous command, like so:

docker container run --rm --interactive --tty fscm/mkpasswd my_password

By default, the mkpasswd tool will encrypt the password with the 'Yescrypt' method.

To view a list of the available methods use the following command:

docker container run --rm --interactive --tty fscm/mkpasswd -m help

To view a list of all of the available options use the following command:

docker container run --rm --interactive --tty fscm/mkpasswd --help

Build

Build instructions can be found here.

Versioning

This project uses SemVer for versioning. For the versions available, see the tags on this repository.

Authors

  • Frederico Martins - fscm

See also the list of contributors who participated in this project.

About

Docker recipe to build a mkpasswd tool image

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published