Implement RSA Encryption method.