安装依赖 pip install cryptography 实现方法 from cryptography.fernet import Fernet class SymmetricEncryption(object): ''' 对称加密算法 ''' def