Classical Ciphers¶
-
class
sage.crypto.classical_cipher.AffineCipher(parent, key)¶ Bases:
sage.crypto.cipher.SymmetricKeyCipherAffine 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
AffineCryptosystemas the latter provides a convenient user interface.
-
class
sage.crypto.classical_cipher.HillCipher(parent, key)¶ Bases:
sage.crypto.cipher.SymmetricKeyCipherHill cipher class
-
inverse()¶
-
-
class
sage.crypto.classical_cipher.ShiftCipher(parent, key)¶ Bases:
sage.crypto.cipher.SymmetricKeyCipherShift 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
ShiftCryptosystemas the latter provides a convenient user interface.
-
class
sage.crypto.classical_cipher.SubstitutionCipher(parent, key)¶ Bases:
sage.crypto.cipher.SymmetricKeyCipherSubstitution cipher class
-
inverse()¶
-
-
class
sage.crypto.classical_cipher.TranspositionCipher(parent, key)¶ Bases:
sage.crypto.cipher.SymmetricKeyCipherTransition cipher class
-
inverse()¶
-
-
class
sage.crypto.classical_cipher.VigenereCipher(parent, key)¶ Bases:
sage.crypto.cipher.SymmetricKeyCipherVigenere cipher class
-
inverse()¶
-