How to Decode a Base64 Encode
Import Base64 a = "Agvsbg8" D = A. Encode() Print(D) Z = Base64. B64Decode(D) It Is Showing Error I Already Know That This Encode's Decode Is Hello but I Was...
import base64
a = "aGVsbG8"
d = a.encode()
print(d)
z = base64.b64decode(d)
It is showing error I already know that this encode's decode is hello but I was trying to get a encoded text of base 64 to decode in a new file but I was unsuccessful. Can anyone solve my problem?
MY PROBLEM IN EASY WORDS :)
its encoded version of hello from base64... I am trying if I get a text suppose from my friend that is encoded from base 64 then can I decode it from base64 only, in my pc?
Answer Thanks @Olvin
we just need to add "=" in a = "aGVsbG8" so it will be a = "aGVsbG8="
and it worked !!!