added seperate encrypt and decrypt object for encoding. Also fixed mix up between decode input encoding and output encoding.
added seperate encrypt and decrypt object for encoding. Also fixed mix up between decode input encoding and output encoding.

dominictarr/pull-crypto