refactor rsa encrypt/decrypt for simplicity