diff --git a/solutions/Hex_To_Base64.py b/solutions/Hex_To_Base64.py new file mode 100644 index 0000000..46d107b --- /dev/null +++ b/solutions/Hex_To_Base64.py @@ -0,0 +1,4 @@ +hexa = "49276d206b696c6c696e6720796f757220627261696e206c696b65206120706f69736f6e6f7573206d757368726f6f6d" +binary = binascii.unhexlify(hexa) +Base64 = base64.b64encode(binary) +print(Base64)