Suppose a city has license plates assigned to cars with 7 digits $a_1$ to $a_7$ and a checksum calculated by the following algorithm: ($m_k$ are integers) $$m_1a_1+m_2a_2+\cdots+m_7a_7\mod 28$$ (which is then encoded as an alphanumeric character)
The city administration keeps secret $m_1$ to $m_7$.
Given many different license plates, how do I create an algorithm equivalent to this?
You need 7 different license plates such that, when you form the matrix $A = (a_{ij})$ whose rows correspond to license plates, $\rm{det}(A)$ is relatively prime to $28$.
Then let $m$ be a column vector whose $i$th entry is $m_i$, and place the checksums corresponding to each plate in another column vector $x$, so that we have:
$$ A m \equiv x \pmod{28} $$ Then in the matrix ring $\mathbb{M}_7(\mathbb{Z}/28\mathbb{Z})$, $A$ is invertible, so we can compute $m \pmod{28}$: $$ m \equiv A^{-1} x \pmod{28} $$