Contents Menu Expand Light mode Dark mode Auto light/dark, in light mode Auto light/dark, in dark mode Skip to content
Cryptography
Light Logo Dark Logo
Version 10.6 Reference Manual
  • Home - Cryptography
  • Cryptosystems
  • Ciphers
  • Classical Cryptosystems
  • Classical Ciphers
  • Simplified DES
  • Mini-AES
  • DES
  • PRESENT
  • Blum-Goldwasser Probabilistic Encryption
  • Stream Cryptosystems
  • Stream Ciphers
  • Linear feedback shift register (LFSR) sequence commands
  • Utility Functions for Cryptography
  • Boolean functions
  • S-Boxes and Their Algebraic Representations
  • S-Boxes used in cryptographic schemes
  • Abstract base class for generators of polynomial systems
  • Small Scale Variants of the AES (SR) Polynomial System Generator
  • Rijndael-GF
  • Hard Lattice Generator
  • (Ring-)LWE oracle generators
  • Index of key exchange schemes
  • Key Exchange Schemes
  • Diffie-Hellman Key Exchange Scheme
Back to top
View this page
Edit this page

Ciphers¶

class sage.crypto.cipher.Cipher(parent, key)[source]¶

Bases: Element

Cipher class

codomain()[source]¶
domain()[source]¶
key()[source]¶
class sage.crypto.cipher.PublicKeyCipher(parent, key, public=True)[source]¶

Bases: Cipher

Public key cipher class

class sage.crypto.cipher.SymmetricKeyCipher(parent, key)[source]¶

Bases: Cipher

Symmetric key cipher class

Next
Classical Cryptosystems
Previous
Cryptosystems
Copyright © 2005--2025, The Sage Development Team
Made with Sphinx and @pradyunsg's Furo
On this page
  • Ciphers
    • Cipher
      • codomain()
      • domain()
      • key()
    • PublicKeyCipher
    • SymmetricKeyCipher