I'm writing a very short no-frills script to convert an old user information database to another user information database. I don't need anything spectatcular, and I'll likely only use the script once. I'm doing this all on a disconnected box. I say that because I want a quick and easy solution, and security isn't really an issue. I don't really want to load a module just to do this one-time thing.

The old database stores passwords plain text. The new one stores them in MD5 format. I would like to convert my old passwords to the new MD5 standars. Is there a way to do this without a module? Maybe there's a way I can shell to the unix prompt and run a unix command and take that output and use IT as the password for the new database?

I appreciate any and all help. Thanks in advanced.

--Coplan


In reply to MD5 password encryption on a no frills script by Coplan

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.