# Mkpasswd

Mkpasswd is a straightforward tool used to scramble passwords into secure, unreadable codes called ‘hashes’. It is open source and self-hosted, installable on Docker Hub.

Canonical page: https://ourlocalhost.com/app/6400/mkpasswd

## Description

Mkpasswd is a straightforward tool used to scramble passwords into secure, unreadable codes called ‘hashes’. These hashes are essential for safely setting up servers and applications. It is a lightweight, reliable way to ensure your login credentials are encrypted and protected from being read by others.

## Platform availability

Available on 0 of 10 platforms.

## Health score

10/100 (Low), based on 3 of 4 factors.
- Maintained: 17 (last commit 562 days ago)
- Popular: 0 (0 GitHub stars)
- Easy to install: 10 (0 install platforms, Docker image)

## Links

- Docker Hub: https://hub.docker.com/r/serversideup/mkpasswd
- GitHub: https://github.com/LindSuen/mkpasswd

## Common questions

### Why does mkpasswd -m sha-512 produce a different hash on each run?

If no salt is supplied, mkpasswd uses a random salt. That random salt changes the encrypted password value every time. You can specify a salt with -S or --salt=STRING.

### Why can a password starting with a dash cause HestiaCP login failures when mkpasswd is used?

HestiaCP 1.10.5 calls mkpasswd directly, and mkpasswd argument parsing is sensitive and has become stricter over time. A leading dash can be parsed as an option, leading to invalid username or password errors.

### What can I use to locate the package that provides mkpasswd if package-manager search fails?

Try eopkg search mkpasswd|passwd; the source reports that it found nothing and asks for a tool that maps commands to packages.

### Is mkpasswd the recommended tool for changing a fresh root password?

No recommendation is given. The question covers whether fresh root passwords are encrypted, hashed, or plain text, whether mkpasswd should be used to change them, and whether passwd is better for a new admin account.

---
Source: Our Local Host (https://ourlocalhost.com/app/6400/mkpasswd), the self-hosted and open-source app directory.
