Guest User

Untitled

a guest
Apr 20th, 2018
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. $md5 = Digest::MD5->new;
  2.  
  3. #postgres passwords in the pg_shadow table are generated by using the plaintext password and the username
  4. $md5->add($password . $username);
  5.  
  6. # the text 'md5' plus the previous md5 hash of the password and usename are what's stored in the pg_shadow table
  7. print "md5" . $md5->hexdigest . "\n";
Add Comment
Please, Sign In to add comment