Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import hashlib
- def get_cookies(username, password):
- password = "choujin-steiner--" + password + "--"
- sha_1 = hashlib.sha1()
- sha_1.update(password.encode('utf-8'))
- password = sha_1.hexdigest()
- cookies = {"login": username, "pass_hash": password}
- return cookies
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement