No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

main.cpp 470B

123456789101112131415
  1. #include <iostream>
  2. #include "include/Crypt.h"
  3. /**
  4. @brief Take a string on command line argument to encrypt it. For vigenere encnyption, the text is encrypted with itself as a key
  5. **/
  6. int main( int argc, char* argv[] )
  7. {
  8. std::string txt = argv[1] ;
  9. std::cout << "to encrypt :" << txt << std::endl;
  10. std::cout << "code cesar :" << Crypt::cesar(txt, 3 ) << std::endl ;
  11. std::cout << "code vigenere :" << Crypt::vigenere(txt, txt ) << std::endl ;
  12. return 0;
  13. }