Helps to generate kickstart passwords.
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
LICENSE
README
pwkickstart

README

NAME

pwkickstart - 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

openssl(1)

AUTHOR

Lukas Zapletal <lzap+spam@redhat.com>