Key length determines how many different keys you can generate. A keylength of 56 bits means you can have 2^56 keys or 72057594037927936 different keys. Given todays computing power, that's considered a weak keylength.

The complexity of the key shouldn't matter ... let me say that again ... shouldn't matter ... because your key needs to change on a periodic (or at least aperiodic) basis. Not changing your key on a regular basis gives your attacker more data to work with, more time to do it in, and exposes more data to potential loss.

That being said, a 56 bit key that never changes may be just fine for you. It's better than XOR but nowhere near as good as AES (however, the longer you keep the same key, the more it becomes like XOR). It all depends on the value of what your protecting and what other layers of security you have.

Does that answer your question? Probably not. The important thing to remember is key complexity is a red herring because your key should be changing and 56 bit encryption can be good enough if you have other layers of security.

-derby

In reply to Re: Question about encryption key length by derby
in thread Question about encryption key length by bradcathey

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.