PB
Available
lock
lock Free · Private · In-Browser

Hill Cipher 2x2

Encode or decode digraphs with a four-integer Hill matrix.

 

How Hill Cipher 2x2 works

Hill Cipher 2x2 handles pairs of A-through-Z values by multiplying each two-letter vector with a user-supplied two-by-two matrix modulo 26. Encode mode performs matrix multiplication. Decode mode computes the determinant's modular inverse, builds the adjugate inverse matrix, and rejects keys without an inverse. The Hill Cipher 2x2 exposes its message, matrix values a,b,c,d, operation controls so this particular convention stays inspectable instead of hiding behind an unexplained preset.

HELP with matrix values 3, 3, 2, 5 produces HIAT; the determinant is invertible modulo 26, so decoding recovers HELP. Linear-algebra students can connect modular matrix arithmetic with a concrete digraph cipher and test whether a proposed key is reversible. The Hill Cipher 2x2 presents a deterministic plain-text result that can be copied and compared with the worked value before it enters another workflow.

Limits and private processing

Nonletters are removed and odd messages receive X padding. A mathematically invertible Hill key still offers no protection against modern cryptanalysis. The Hill Cipher 2x2 performs its complete operation locally in your browser; neither the source text nor its settings are uploaded, stored remotely, or sent through an external request.

Frequently Asked Questions

How does the Hill Cipher 2x2 work?

Encode mode performs matrix multiplication. Decode mode computes the determinant's modular inverse, builds the adjugate inverse matrix, and rejects keys without an inverse.

What does the default Hill Cipher 2x2 example return?

HELP with matrix values 3, 3, 2, 5 produces HIAT; the determinant is invertible modulo 26, so decoding recovers HELP.

What limitation should I know about?

Nonletters are removed and odd messages receive X padding. A mathematically invertible Hill key still offers no protection against modern cryptanalysis.

Is the Hill Cipher 2x2 private?

Yes. This specific hill cipher 2x2 operation runs locally in your browser and does not transmit the input or settings.

Take it further
All Free Tools

Browse the full set of free, private, in-browser tools.

Learn More arrow_forward