Use the Mandelbrot function. It's a very simple function that can be implemented on the clientside, is essentially (though not exactly) one-way, but is easy reversible so that you can have a list of mappings for encryption. It maps (X,Y) coordinates into values in the range 0-N (where N is normally 255).
This is, essentially, a variation on Limbic~Region's shared-book approach. You can then vary a number of things:
- Order of coordinates sent. You could send messages in a NxM character grid and send them in col-row order (vs. the normal row-col) order.
- You can send every Nth coordinate as (Y,X) vs. (X,Y).
- You can vary the translation of the result of the Mandelbrot from an entry into the ASCII table to an entry into your own table.
- You can vary the Mandelbrot from a quadratic to a cubic (or quartic) equation. I did this in a course on fractals and instead of the normal Mandelbrot picture, I ended up with a cool picture of two wizards fighting each other. :-)
My criteria for good software:
- Does it work?
- Can someone else come in, make a change, and be reasonably certain no bugs were introduced?
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.