Base64
Permite representar datos binarios como una cadena ASCII utilizando un alfabeto de 64 caracteres
import base64
str_hex = "54657374"
str_bytes = bytes.fromhex(str_hex)
str_b64 = base64.b64encode(str_bytes)
print(str_b64) # b'VGVzdA=='Last updated