Adm1n_0v3rride

python3 base64

Feb 22nd, 2018
340
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.22 KB | None | 0 0
  1. #!/usr/bin/env python3
  2.  
  3. import base64
  4.  
  5. encoded = base64.b64encode(b'Greetings and merry christmas')
  6. #b'R3JlZXRpbmdzIGFuZCBtZXJyeSBjaHJpc3RtYXM='
  7.  
  8. print(encoded)
  9.  
  10. data = base64.b64decode(encoded)
  11.  
  12. print(data)
Advertisement
Add Comment
Please, Sign In to add comment