Skip to content

Cap26803/Encryption-Decryption-using-CPP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 

Repository files navigation

Encryption-Decryption-using-CPP

Encrypt any text with ease, and decrypt with a unique key.

image

Class EncryptorDecryptor

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.


Class XORCipher

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.


Class CommonAlgorithm

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.