Almost the same, but in C
import Base64
print(Base64.Base64().encode('Many hands make light work.'))
TWFueSBoYW5kcyBtYWtlIGxpZ2h0IHdvcmsu
print(Base64.Base64().decode('TWFueSBoYW5kcyBtYWtlIGxpZ2h0IHdvcmsu'))
'Many hands make light work.'
A very simple Base64 encoder/decoder for learning purposes
Almost the same, but in C
import Base64
print(Base64.Base64().encode('Many hands make light work.'))
TWFueSBoYW5kcyBtYWtlIGxpZ2h0IHdvcmsu
print(Base64.Base64().decode('TWFueSBoYW5kcyBtYWtlIGxpZ2h0IHdvcmsu'))
'Many hands make light work.'