refactoring encryptor
issues #11
Merge pull request #12 from canbingzt/master

refactoring encryptor