Improved the encryption method.