Im working on this project requiring using vector and rotors to do the encryption and decryption. I have no idea where to start. Any expert who can help?
Make a class with a constructor taking the multiplier/divisor and the addition/subtraction parameter.
Have a public method to encode, and a public method to decode. Each should take a collection class as parameter, and return the same type of collection class.
eg:
1 2 3 4 5 6 7
class MultAdd {
...
public:
MultAdd(int m, int a);
std::list<int> encode(const std::list<int>&) const;
std::list<int> decode(const std::list<int>&) const;
};