Ported RSA to Cryptography, Path and File to IO