Advertisement
Guest User

Untitled

a guest
Sep 7th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. import base64
  2. filePass = open('pass.txt', 'r').read().splitlines()
  3. user = 'root:'
  4. for password in filePass:
  5. password = user+password
  6. encoded1 = base64.b64encode(password.encode('utf-8'))
  7. print(encoded1.decode('utf-8'))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement