Hi,

I have several devices (pcs, phones, tablets, routers) where I store sensitive informations (passwords, PINs etc: short textual information), some of which are even shared via some cloud, so I am looking for a way to secure this in a way that would work everywhere and the one thing I have everywhere is a perl-installation.

So what I am looking for is the best way to encrypt and decrypt short strings via perl using core-modules only that produces encrypted versions containing only printable characters.

As the built-in crypt only uses the first 8 characters (afaik) this is unfortunately not as trivial as I thought it would be...

Note that I do not want solutions that implement an known algorithm in pure perl and that I am quite happy to share my secrets with the NSA, I am simply looking for something convenient to use to protect my secrets from the average Joe that hits the sweet spot between convenience and security.

Any ideas?

Many thanks!


In reply to crypto with core modules only by morgon

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.