https://github.com/niasar/genpasswd
sha-512 password hash generator for /etc/shadow
https://github.com/niasar/genpasswd
ansible hash linux-password mkpasswd passwd sha-512 shadow
Last synced: 6 months ago
JSON representation
sha-512 password hash generator for /etc/shadow
- Host: GitHub
- URL: https://github.com/niasar/genpasswd
- Owner: niasar
- License: gpl-3.0
- Created: 2019-08-20T16:07:24.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2019-09-26T07:57:47.000Z (about 6 years ago)
- Last Synced: 2023-11-01T11:26:58.102Z (almost 2 years ago)
- Topics: ansible, hash, linux-password, mkpasswd, passwd, sha-512, shadow
- Language: Go
- Size: 1.28 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Genpasswd
Master branch : [](https://dev.azure.com/niasar/genpasswd/_build/latest?definitionId=1&branchName=master)
## SHA-512 password hash generator for /etc/shadow
### Why use this instead of mkpasswd?
Because mkpasswd dosen't require password confirmation when generating hash, this makes it difficult to use as hash generator for interactive password rotaing system in group of hosts using Ansible
### Usage`genpasswd [--stdout] [--filename file.name] [salt]`
By default hash will be saved in passwd.hash file or it may be saved in different file(if --filename specified) or printed to stdout (if --stdout specified)
Provided salt might be 8 to 16 characters long, if no salt provided, 16 chars long random salt will be generated