I've been reading about uuencoding and was wondering how to decode the following example given in this link using Python.
https://en.wikipedia.org/wiki/Uuencoding
Original text: Cat
Uuencoded text: #0V%T
Python 2
$ python -c 'print "Cat".encode("uu")'
begin 666 <data>
#0V%T
end
$
Python 3
$ python3 -c "from codecs import encode;print(encode(b'Cat', 'uu'))"
b'begin 666 <data>\n#0V%T\n \nend\n'
$
It is just the inverse of the original function....
Let me try and show you. I will use 2 common encoding type uu and base-64.
Python 3
This should output
We need the final .decode() as we initially converted the str data object into bytes with the encode().