Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

django python base 64 encode

import base64

message = "Python is fun"
message_bytes = message.encode('ascii')
base64_bytes = base64.b64encode(message_bytes)
base64_message = base64_bytes.decode('ascii')

print(base64_message)
Source by stackabuse.com #
 
PREVIOUS NEXT
Tagged: #django #python #base #encode
ADD COMMENT
Topic
Name
2+7 =