These are chat archives for gwydirsam/DickGrayson
*Rsa Key generation
We generate large enough numbers using the gmp library. Those randomly generated p and q values are then used to calculate totient, d, and e.
*Encryption and decryption
Encryption happens by splitting up the passed in message into blocks to keep values less than the bit size of n. The blocks are converted into ascii values, and each block is delimited by a "-" so that when it is passed into the decryption function, we know at what increments to pass the values into the mod formula in.