Fixed encryption functions
Merge pull request #1 from kafene/master

Fix encryption functions