import base64
      sample_string = "GeeksForGeeks is the best"
      sample_string_bytes = sample_string.encode("ascii")
      base64_bytes = base64.b64encode(sample_string_bytes)
      base64_string = base64_bytes.decode("ascii")
      print(f"Encoded string: {base64_string}")
      
      Python language logo

      Base64 encoding

      0

      1

      avatar
      Mahendra Kumar
      intermediate
      cryptography
      encoding
      ...

      python program to implement base64 encoding using python base64 module

      0 Comments

        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.