| Viewing Single Post From: My New Cipher | |
|---|---|
| jdege | Apr 16 2008, 11:59 AM |
|
Elite member
![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
A matrix is a two-dimensional array of numbers, a vector is a one-dimensional sequence of numbers. The multiplication of a vector by a matrix yields another vector. Suppose our plaintext is "SEND HELP", and our key is the 2x2 matrix: We take the plaintext two letters at a time, treating each letter as an integer mod-26: We multiply the matrix and the vector: And since 22 = "W" and 14 = "O", we thus encode "SE" as "WO". We do the same process for the remaining pairs of plaintext letters, adding a random padding character at the end if we're one short. To decrypt, we multiply by a matrix that is the inverse of the one we used to encrypt. Not all matrices can be inverted - we can only use invertible matrices as keys. |
| When cryptography is outlawed, bayl bhgynjf jvyy unir cevinpl. | |
![]() |
|
| My New Cipher · Challenges | |




![]](http://209.85.122.85/static/1/pip_r.png)


10:46 AM Nov 26