I am looking for a Java function to generate / verify password hashes that were encoded in the crypt(3)
when stored in the Linux / etc / shadow file if sha512
activated in "/etc/pam.d/common-password".
The plaintext string "geheim" will be translated into:
"$6$WoC532HB$LagBJ00vAGNGu8p9oeYDOSNZo9vTNTzOgPA.K0bJoiXfbcpj3jBuTkNwdzCrSNadRi8LanH1tH6tGGPPp/Lp3."
From http://www.akkadia.org/drepper/SHA-crypt.txt I understand that, as in the case of MD5, this is not just a SHA hash code, for example DigestUtils
, or Java MessageDigest
classes produce, but an algorithm, which makes a little more magical.
source share