diff --git a/your_projects/base64/base64_encoding_decoding.py b/your_projects/base64/base64_encoding_decoding.py new file mode 100644 index 0000000..e0955ea --- /dev/null +++ b/your_projects/base64/base64_encoding_decoding.py @@ -0,0 +1,20 @@ +import base64 + + +message = "ce qui ne se partage pas se perd" + + +message_bytes = message.encode('ascii') +base64_bytes = base64.b64encode(message_bytes) + + +base64_message = base64_bytes.decode('ascii') +print("Encoded Message:", base64_message) + + +decoded_bytes = base64.b64decode(base64_bytes) +decoded_message = decoded_bytes.decode('ascii') + + +print("Decoded Message:", decoded_message) +