Take a look at my Pythagorean cipher. It's idiotic and not practical, but it's just neat.
https://github.com/sp1d3rx/nonsense/blob/master/cipher.py