My own implementation of RSA encryption.