codelib

python package for encoding and decoding

View on GitHub

codelib

python package for encoding and decoding

Installation:

$ pip install codelib

usage:

>>> import codelib
>>> codelib.rot.rot13("hello")
'uryyb'
>>> codelib.rot.rot13('uryyb')
'hello'

>>> codelib.rot.rot47("hello")
'96==@'
>>> codelib.rot.rot47('96==@')
'hello'


>>> codelib.base.base64encode("hello")
'aGVsbG8='
>>> codelib.base.base64decode('aGVsbG8=')
'hello'


>>> codelib.base.base64encode("hellow", 5)
'VjFaV2ExWXlUWGxUYTJoUVVrUkJPUT09'


>>> help(codelib)        # for more Info