Advertisement
Fhernd

codificar-decodificar-base64.py

Aug 1st, 2018
3,431
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.19 KB | None | 0 0
  1. import base64
  2.  
  3. cadena = b'Python'
  4.  
  5. # Codificación en Base64:
  6. codificacion = base64.b64encode(cadena)
  7. print(codificacion)
  8.  
  9. # Decodificación en Base64:
  10. print(base64.b64decode(codificacion))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement