title: Generating a password hash similar to the one inside /etc/shadow
body: <p>Hallo i want to make a script that hashes passwords and compares them with the ones inside /etc/shadow... But i have one hitch</p>
  
  <p>The passwords at /etc/shadow usually get a strange and unique hash salt every time a new user is created how can i be able to generate a similar hash using the same password?</p>
  
  <p>To be able to have identical passwords the one i have and the one at the shadow file</p>
  
  <p>I have tried using perl python mkpasswd all without matching it
  In particular where does the salt come from and can i change it?</p>