以下是一个利用Python的cryptography库实现RSA加密的代码实例:
```python from cryptography.hazmat.primitives import serialization from cryptography.hazmat.primitives.asymmetric import rsa from cryptography.hazmat.primitives import hashes from cryptography.hazmat.primitives.asymmetric import padding
生成RSA密钥对