added encrypt string method