• Authenticated encryption modes (GCM, CCM, EAX, SIV)
  • Accelerated AES on Intel platforms via AES-NI
  • First class support for PyPy
  • SHA-3 hash algorithm
  • Salsa20 stream cipher
  • scrypt and HKDF
  • Deterministic DSA
  • Password-protected PKCS#8 key containers
  • Shamir’s Secret Sharing scheme
  • Random numbers get sourced directly from the OS (and not from a CSPRNG in userspace)
  • Simplified install process, including better support for Windows
  • Cleaner RSA and DSA key generation (largely based on FIPS 186-4)
  • Major clean ups and simplification of the code base

官方文档:Compatibility with PyCrypto


0x01 安装

pip install PyCryptodome


0x02 使用


from Crypto.Cipher import AES


posted @ 2019-10-05 01:27  pcat  阅读(...)  评论(...编辑  收藏