Classical Ciphers#
- class sage.crypto.classical_cipher.AffineCipher(parent, key)#
Bases:
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:
SymmetricKeyCipher
Hill cipher class
- inverse()#
- class sage.crypto.classical_cipher.ShiftCipher(parent, key)#
Bases:
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:
SymmetricKeyCipher
Substitution cipher class
- inverse()#
- class sage.crypto.classical_cipher.TranspositionCipher(parent, key)#
Bases:
SymmetricKeyCipher
Transition cipher class
- inverse()#
- class sage.crypto.classical_cipher.VigenereCipher(parent, key)#
Bases:
SymmetricKeyCipher
Vigenere cipher class
- inverse()#