Classical Ciphers

class sage.crypto.classical_cipher.AffineCipher(parent, key)

Bases: sage.crypto.cipher.SymmetricKeyCipher

Affine cipher class. This is the class that does the actual work of encryption and decryption. Users should not directly instantiate or create objects of this class. Instead, functionalities of this class should be accessed via AffineCryptosystem as the latter provides a convenient user interface.

class sage.crypto.classical_cipher.HillCipher(parent, key)

Bases: sage.crypto.cipher.SymmetricKeyCipher

Hill cipher class

inverse()
class sage.crypto.classical_cipher.ShiftCipher(parent, key)

Bases: sage.crypto.cipher.SymmetricKeyCipher

Shift cipher class. This is the class that does the actual work of encryption and decryption. Users should not directly instantiate or create objects of this class. Instead, functionalities of this class should be accessed via ShiftCryptosystem as the latter provides a convenient user interface.

class sage.crypto.classical_cipher.SubstitutionCipher(parent, key)

Bases: sage.crypto.cipher.SymmetricKeyCipher

Substitution cipher class

inverse()
class sage.crypto.classical_cipher.TranspositionCipher(parent, key)

Bases: sage.crypto.cipher.SymmetricKeyCipher

Transition cipher class

inverse()
class sage.crypto.classical_cipher.VigenereCipher(parent, key)

Bases: sage.crypto.cipher.SymmetricKeyCipher

Vigenere cipher class

inverse()

Previous topic

Classical Cryptosystems

Next topic

Simplified DES

This Page