creation of encrypt class