in reply to encrypt/decrypt string

There are many encryption modules avaialble on CPAN. I usually reach for Crypt::Blowfish, which is best used via Crypt::CBC. It's a fast algorithm which hasn't been broken yet, as far as I know.

-sam

Replies are listed 'Best First'.
Re^2: encrypt/decrypt string
by artist (Parson) on Oct 19, 2006 at 20:35 UTC
    Thanks, It works for me finally. I wanted to pass the hex character instead of random ascii characters. encrypt_hex and decrypt_hex did the job.
    --Artist
Re^2: encrypt/decrypt string
by artist (Parson) on Oct 19, 2006 at 18:20 UTC
    I like to have fix number of characters (for example: 20 Hex digits) in the encrypted string.
    --Artist
      That strikes me as a silly thing to want in this context. There's no reason URLs need to be a fixed length and trust me, Blowfish isn't any weaker for producing variable length output.

      -sam

      Blowfish *does* encrypts a fixed number of input characters to a fixed number of output characters.