While there are plenty of ideas, you really haven't given enough information for us to provide a good focused answer.

Some questions you should answer to help get a focused answer:

  1. can you generate and send sufficiently securely unique keys?
  2. does the user have access to your source code?
  3. is the plain text "printable"?
  4. need the cypher text be printable?
  5. does the user need to transcribe the cypher text?
  6. does the cypher text need to be self validating (include a check sum or some such)?

It may be worth noting that if you have a source of unique keys of the same length as the plain text and a secure way to transmit the keys to the recipient of the encrypted string then you can use a one time pad technique. A one time pad is absolutly unbreakable without the key and is pretty simple to implement - just xor the plain text with the key text. Xor the cypher text with the key text to get the plain text back. The down side is that the cypher text will very likely not be printable.


DWIM is Perl's answer to Gödel

In reply to Re: Short & Sweet Encryption? by GrandFather
in thread Short & Sweet Encryption? by inblosam

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • 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:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.