private encrypt