added new class for encryption