PageRenderTime 30ms CodeModel.GetById 25ms RepoModel.GetById 0ms app.codeStats 0ms

/app/gdata/Crypto/Cipher/__init__.py

https://gitlab.com/gregtyka/server
Python | 33 lines | 26 code | 0 blank | 7 comment | 1 complexity | c210e46948152f38107271fad6a088a6 MD5 | raw file
  1. """Secret-key encryption algorithms.
  2. Secret-key encryption algorithms transform plaintext in some way that
  3. is dependent on a key, producing ciphertext. This transformation can
  4. easily be reversed, if (and, hopefully, only if) one knows the key.
  5. The encryption modules here all support the interface described in PEP
  6. 272, "API for Block Encryption Algorithms".
  7. If you don't know which algorithm to choose, use AES because it's
  8. standard and has undergone a fair bit of examination.
  9. Crypto.Cipher.AES Advanced Encryption Standard
  10. Crypto.Cipher.ARC2 Alleged RC2
  11. Crypto.Cipher.ARC4 Alleged RC4
  12. Crypto.Cipher.Blowfish
  13. Crypto.Cipher.CAST
  14. Crypto.Cipher.DES The Data Encryption Standard. Very commonly used
  15. in the past, but today its 56-bit keys are too small.
  16. Crypto.Cipher.DES3 Triple DES.
  17. Crypto.Cipher.IDEA
  18. Crypto.Cipher.RC5
  19. Crypto.Cipher.XOR The simple XOR cipher.
  20. """
  21. __all__ = ['AES', 'ARC2', 'ARC4',
  22. 'Blowfish', 'CAST', 'DES', 'DES3', 'IDEA', 'RC5',
  23. 'XOR'
  24. ]
  25. __revision__ = "$Id: __init__.py,v 1.7 2003/02/28 15:28:35 akuchling Exp $"