You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 6101081
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: docs/pages/enc/crypto.md
+21Lines changed: 21 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -397,6 +397,27 @@ This toy cipher ("Base-64" reversed) comes from online JavaScript encryption too
397
397
398
398
-----
399
399
400
+
### EZIP-64
401
+
402
+
This toy cipher, a variant of [ARMON-64](#armon-64), comes from online JavaScript encryption tools. It works the same way, but with blocks of a third of the key length (rounded), a factor of 0.02 in its fourth operation and `/` as the separator.
`ezip64` | text <-> EZIP-64 ciphertext | `ezip-64`, `ezip_64` | parameterized with a mandatory key of at least 3 characters, e.g. `ezip64-secret` ; only characters with a code below 256
407
+
408
+
!!! warning "Precision"
409
+
410
+
As the computations are done with double-precision floats, as in JavaScript, keys of more than 19 characters give blocks that are too large to be decrypted exactly.
The Four-square cipher, invented by Felix Delastelle, substitutes pairs of letters using four squares arranged in a 2x2 matrix: the upper-left and lower-right ones hold the alphabet in order, while the upper-right and lower-left ones are filled with two keywords. The first letter of each pair is located in the upper-left square and the second one in the lower-right square ; they are replaced by the letters at the other corners of the rectangle they form (in the upper-right square, then in the lower-left one).
0 commit comments