Classical Ciphers¶
- class sage.crypto.classical_cipher.AffineCipher(parent, key)[source]¶
Bases:
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)[source]¶
Bases:
SymmetricKeyCipherHill cipher class
- class sage.crypto.classical_cipher.ShiftCipher(parent, key)[source]¶
Bases:
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)[source]¶
Bases:
SymmetricKeyCipherSubstitution cipher class
- class sage.crypto.classical_cipher.TranspositionCipher(parent, key)[source]¶
Bases:
SymmetricKeyCipherTransition cipher class
- class sage.crypto.classical_cipher.VigenereCipher(parent, key)[source]¶
Bases:
SymmetricKeyCipherVigenere cipher class