Skip to content

Instantly share code, notes, and snippets.

@elPytel
Created August 12, 2026 12:33
Show Gist options
  • Select an option

  • Save elPytel/20cdcddab6ed9271168b6acae6a1d583 to your computer and use it in GitHub Desktop.

Select an option

Save elPytel/20cdcddab6ed9271168b6acae6a1d583 to your computer and use it in GitHub Desktop.
Generování hashe z hesla

Generování hashe z hesla pro /etc/shadow

Pokud chcete vygenerovat kompatibilní SHA-512 hash včetně soli pro Linuxový /etc/shadow nebo Preseed/Kickstart:

python3 -c "from passlib.hash import sha512_crypt; import getpass; print(sha512_crypt.using(rounds=656000).hash(getpass.getpass('clear-text pw: ')))"

Tip

Případně stačí balíček nainstalovat přes pip install passlib.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment