in reply to Basic Crypt::Blowfish usage question

These lower level routines are for encoding single characters. You need to look at Cypher Block Chaining to do messages of arbitrary length.

  • Comment on Re: Basic Crypt::Blowfish usage question

Replies are listed 'Best First'.
Re: Re: Basic Crypt::Blowfish usage question
by runrig (Abbot) on Mar 31, 2002 at 04:52 UTC
    Not quite single characters. Crypt::Blowfish is for encrypting 8 characters at a time. You're right that Crypt::CBC is for arbitrary length messages, and can use Crypt::Blowfish, though I have run into trouble where I couldn't decrypt messages sent to me where someone was encrypting with a non-standard CBC.
    -----------
    ooo  O\O  ooo tilly was here :,(
    
Re: Re: Basic Crypt::Blowfish usage question
by DaWolf (Curate) on Mar 31, 2002 at 00:42 UTC
    Could you give some deeper explanation?

    I'm very new to Cryptography and the results I've found by searching the monastery weren't clear enough.

    Thanks a lot for your patience,

    Er Galvão Abbott
    a.k.a. Lobo, DaWolf
    Webdeveloper
      I'm by no means an expert on cryptography, nor the math involved.. ;-)

      Have a look at this, at which point i defer to a more experienced monk to explain the concepts of cypher block chaining.

      Get yourself a copy of Applied Cryptography, its a great book that explains how all this works: various protocols, attacks, algorithms et al. Once you've read it and know all about how to implement good security, go read Secrets and Lies....