The project is a programme for encrypting text using different encryption algorithms. The user can select one of the available algorithms, specify the text to be encrypted, the key and, if necessary, the input/output files.
Encryption algorithm selection: The following algorithms are supported:
- XOR
- RC4
- Vigenère
- RSA (GMP library required)
Text encryption: The user can specify the text to be encrypted directly via the command line or provide a text file.
Key specification: For algorithms requiring a key, the user must provide the appropriate key.
Output encrypted data: Encrypted data can be printed to the console or saved to a file.
Follow the steps below to use the programme:
- make all
- cypher_main --help
cypher_main -C xor -t Hello, World! -k secret
cypher_main -C rc4 -f input.txt -k secret -o encrypted.txt
cypher_main -C vig -t Hello, World! -k keyphrase
cypher_main -C rsa -f input.txt
RSA works in test mode without writing to a file
Make sure that the provided key is compatible with the chosen encryption algorithm. RSA encryption uses the GMP library, so make sure it is installed and properly linked to your project.
This project provides a handy tool for encrypting text using various algorithms. It can be useful for training, testing, or just to protect your data.