RSA Decryption

/////////////////////////////////////////////////////////////////////////////// // This program takes a RSA encrypted message in a text file, // by given parameters, and decrypts it. After which it outputs to console. /////////////////////////////////////////////////////////////////////////////// #include <iostream> #include <fstream> #include <sstream> #include <vector> #include <math.h> /////////////////////////////////////////////////////////////////////////////// void fileRead(std::ifstream &inFile, std::vector &fileBuff); void decrypt(std::vector<int> cipherText, std::vector<char> &plaintText, int pq, …

Kruskal’s and Prim’s algorithm on weighted adjacency matrice

This program takes an input WAM, and applies Kruskal’s and Prim’s algorithms to it. /////////////////////////////////////////////////////////////////////////////// #include <iostream> #include <vector> #include <sstream> /////////////////////////////////////////////////////////////////////////////// struct Edge { int vertOne, vertTwo, weight; Edge(int one, int two, int passedWeight) { this->vertOne = one; this->vertTwo = two; this->weight = passedWeight; } }; class Vertex { …