Added encryption method