Advertisement
Falexom

Untitled

Dec 2nd, 2022
712
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.25 KB | None | 0 0
  1. from hashlib import md5
  2. from var import passwd
  3.  
  4. hashed = md5(passwd.encode('utf-8')).hexdigest()
  5.  
  6. with open("template.tbl", 'r+') as f:
  7.     lines = f.readlines()
  8.     f.seek(0)
  9.     first_place = f"{hashed}\n"
  10.     f.writelines([first_place]+lines)
  11.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement