encrypt class