Validate invertibility of Hill cipher keys in enciphering/deciphering

29 views
Skip to first unread message

Rashad alsharpini2

unread,
Feb 1, 2026, 10:49:31 AM (yesterday) Feb 1
to sage-devel
- [todo1](https://github.com/rashadalsharpini/sage/blob/28a7d0422ba718b81d555a29ec02ef07cf6d92e9/src/sage/crypto/classical.py#L1547)

- [todo2](https://github.com/rashadalsharpini/sage/blob/28a7d0422ba718b81d555a29ec02ef07cf6d92e9/src/sage/crypto/classical.py#L1573)

For the Hill cipher, encryption is defined as
- encryption c = A * M
and decryption as
- Decryption M = A^-1 * c

in these todos i have to check if A is an invertible matrix
is this correct ?

Rashad alsharpini2

unread,
9:12 AM (5 hours ago) 9:12 AM
to sage-devel
i have created a pr related to the addressed issue 
Reply all
Reply to author
Forward
0 new messages