#ifndef CRYPTOGRAPHER_H #define CRYPTOGRAPHER_H #include #include //#include //#include #include #include #include #include #include #include class Cryptographer { public: Cryptographer(QString key); Cryptographer(); QString encrypt(QString message); QString decrypt(QString message); private: QString key; // SimpleCrypt *crypto; //some random number long int encryptedText[100]; long int decryptedText[100]; long int p, q, t, e, d, n; bool isPrime(long int prime); long int calculateE( long int t ); long int greatestCommonDivisor( long int e, long int t ); long int calculateD( long int e, long int t ); long int encrypt( long int i, long int e, long int n ); long int decrypt(long int i, long int d, long int n ); }; #endif // CRYPTOGRAPHER_H