A small image that can be used to run the mkpasswd
tool from the
whois project.
mkpasswd tool encrypts a given password with the crypt(3) libc function using a given salt.
There are a couple of things needed for the script to work.
Docker, either the Community Edition (CE) or Enterprise Edition (EE), needs to be installed on your local computer.
Docker installation instructions can be found here.
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 instructions can be found here.
This project uses SemVer for versioning. For the versions available, see the tags on this repository.
- Frederico Martins - fscm
See also the list of contributors who participated in this project.