Changed encrypted script into a class for tests