Saturday, November 22, 2025
HomeLanguagesbase64.a85encode() in Python

base64.a85encode() in Python

With the help of base64.a85encode() method, we can encode the string by using Ascii85 alphabet into the binary form.

Syntax : base64.a85encode(string)

Return : Return the encoded string.

Example #1 :
In this example we can see that by using base64.a85encode() method, we are able to get the encoded string which can be in binary form by using this method.




# import base64
from base64 import a85encode
  
s = b'GeeksForGeeks'
# Using base64.a85encode() method
gfg = a85encode(s)
  
print(gfg)


Output :

b’7qH7IF%1(g7qH7IEr’

Example #2 :




# import base64
from base64 import a85encode
  
s = b'I love python'
# Using base64.a85encode() method
gfg = a85encode(s)
  
print(gfg)


Output :

b’8K_hfG%De8H$!_<D?’

Dominic
Dominichttp://wardslaus.com
infosec,malicious & dos attacks generator, boot rom exploit philanthropist , wild hacker , game developer,
RELATED ARTICLES

Most Popular

Dominic
32407 POSTS0 COMMENTS
Milvus
97 POSTS0 COMMENTS
Nango Kala
6784 POSTS0 COMMENTS
Nicole Veronica
11929 POSTS0 COMMENTS
Nokonwaba Nkukhwana
11999 POSTS0 COMMENTS
Shaida Kate Naidoo
6907 POSTS0 COMMENTS
Ted Musemwa
7168 POSTS0 COMMENTS
Thapelo Manthata
6863 POSTS0 COMMENTS
Umr Jansen
6847 POSTS0 COMMENTS