in reply to Encryption/Decryption

That's a pretty wide open question, but you could try out Digest::MD5 as a start.

Alex / talexb / Toronto

Life is short: get busy!

Replies are listed 'Best First'.
Re: Encryption/Decryption
by b10m (Vicar) on Jan 07, 2004 at 19:17 UTC

    How would you decrypt a MD5-encrypted string? ;)

    Update: MD5 is one-way hash, and therefore, you aren't able to "decrypt" something you "encrypted" with MD5. This can be useful for passwords (and some operating systems use MD5 for their password file). You make a MD5 hash of the password once and store that output. When, later, a user types in his/her password, you MD5 that string too and compare the results. But since you specifically spoke about decrypting, this type (MD5) doesn't seem valid here. (Thanks to Limbic~Region for pointing out the lacking explanation)

    Update: changed terminology a bit

    --
    b10m

      D'Oh! I looked at the post carefully and registered 'encryption' only. Need more coffee, clearly.

      Alex / talexb / Toronto

      Life is short: get busy!

      How would you decrypt a MD5-encrypted string?

      By being very, very patient.

      ----
      I wanted to explore how Perl's closures can be manipulated, and ended up creating an object system by accident.
      -- Schemer

      : () { :|:& };:

      Note: All code is untested, unless otherwise stated

      How would you decrypt a MD5-encrypted string? ;)

      Well I work for NSA and with a CRAY and the right hooks you can turn 128bits into the complete works of Shakespere ;)