Fixed the encrypter
Merge pull request #6771 from GrahamForks/4.2-fix

[4.2] Fixed The Encrypter