This thread has raised a similar question for me. I fully agree that passwords should be encrypted in such a way so that not even "root" can decrypt them (easily, if at all). However, I have a situation that I haven't been able to figure out. I wrote an email client so that our remote users can use our exchange server through their ISP's (which many will not allow you to send mail unless it uses their server). In the main website, they are allowed to enter their username, email domain, and password so that they don't have to log in different times on the same site. I store this info in MySQL and then when they choose to run the email client they are automatically logged in. The main problem here is that I need to decrypt the password before sending it to the exchange server since it doesn't understand the encrypted one. I feel like this is a huge problem waiting to explode. Does anyone have any ideas on how this situation could be handled better?

In reply to Re: Encryption 101 by ChrisR
in thread Encryption 101 by sulfericacid

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.