Key pair factory and RSA encryptor