Encrypt any text with ease, and decrypt with a unique key.
Description: This is an abstract base class that defines the interface for encryption and decryption operations. It declares two pure virtual functions, encrypt
and decrypt
, which are meant to be overridden by derived classes.
Responsibilities: Provides an interface for encryption and decryption operations.
Description: This derived class inherits from EncryptorDecryptor
and implements encryption and decryption using the XOR cipher algorithm with a secret key.
Responsibilities: Performs encryption and decryption using the XOR cipher algorithm.
Description: This derived class also inherits from EncryptorDecryptor
and implements encryption and decryption using a common algorithm where each character of the message is shifted by 1.
Responsibilities: Performs encryption and decryption using a common algorithm.