My idea was that you are assuming that
- compiled code is safe (hard to decipher)
- a memory dump reveals any password too easily
Inside of these presumptions using code to deencrypt the key should be "safe"
Simple example a loop doing XORs with values from a nested table.
XORs are easily reversed.
Plus some rotations if you want and gotos depending on temporary values in the middle.
Sorry, no ready to use suggestions.
Of course one could use B::Deparse to disassemble the Op-tree,
but that's always the case.
HTH! :)
update
You could create such an algorithm with random values.
It's only important that
- there is no information loss
- that it halts
For clarification the algorithm would act here as the key.
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.