pwkickstart - Man Page
generate kickstart passwords
Synopsis
Generates kickstart-compatible syntax by default. $ pwkickstart Password: # md5 rootpw --iscrypted $1$SI$D964QyK1.Iz/ # sha256 rootpw --iscrypted $5$Ll/Q6$SEYqHGso3maNbtBc1wjyiyr2 # sha512 rootpw --iscrypted $6$MN7wS$1QE3FmSBrN71tXV8y.Blif1avdhTYt/
Description
Utility pwkickstart generates kickstart passwords from password input and prints them to standard output in three different formats: md5, sha256 and sha512.
Previously grub-crypt provided the same, but it is not longer available in some Linux distributions.
The output in section was shortened to fit on screen in the SYNOPOSIS example above.
Non-Interactive Mode
The utility accepts exactly one parameter - the password. Entries are sorted from oldest to newest.
$ pwkickstart mypass $1$6FrN7YsS$2o3lfiD9T4LlUfKBgCe0X1 $5$S2Zab0elQkL7fN.ikw.jmZeb7qtEK7DJESPDv9 $6$slYmPDc8PtwOPmnx$9u3X3NE73XxuU7.5YlJAm/QMEahzx
To get the "strongest" possible hash:
$ pwkickstart mypass | tail -n1 $6$slYmPDc8PtwOPmnx$9u3X3NE73XxuU7.5YlJAm/QMEahzx
Grep exactly what's needed:
$ pwkickstart mypass | grep '$6$' $6$slYmPDc8PtwOPmnx$9u3X3NE73XxuU7.5YlJAm/QMEahzx
License
MIT License
See Also
Author
Lukas Zapletal <lzap+spam@redhat.com>
Info
19 July 2024 1.0.3