Results 1 to 2 of 2

Thread: DES3: 12,5,5 or 8,8,8

  1. #1
    Lianja MVP
    Join Date
    Feb 2012
    Location
    Berea, KY, USA
    Posts
    2,143

    DES3: 12,5,5 or 8,8,8

    Over the years I have seen two descriptions of length max for DES: 12,5,5 and more recently 8,8,8. I have used 12,5,5 recently and it worked on a table.

    So: what is the authoritative ruling from the High Commissioner's Office?

    thanks,

    Hank

    PS: for those reading, non-random encryption keys are pretty worthless unless used just once. Using Chilkat, it's really easy to generate a reasonably random key (and no, your computer's built-in randomization, such as from tmpnam(), is not truly random and a guid is unique, but not random):

    Code:
    lc3Keys = psp_ckrandstr(12,.t.,.t.,.t.) + "," + psp_ckrandstr(5,.t.,.t.,.t.) + "," + psp_ckrandstr(5,.t.,.t.,.t.)
    where psp_ckrandstr is:

    Code:
    lParameters tnLength, tlUseDigits, tlUseLowerCase, tlUseUpperCaselocal loRand as ckPrng
    
    
    if !psp_ckunlock()
        return "" 
    endif
    
    
    loRand = createobject("ckPrng")
    lcRandStr = loRand.RandomString(tnLength, tlUseDigits, tlUseLowerCase, tlUseUpperCase)
    
    
    return lcRandStr
    psp_ckunlock is just your basic unlock code, which reads the key from a .h file.

    Hank
    Last edited by HankFay; 2018-09-10 at 16:25.

  2. #2
    Lianja Development Team barrymavin's Avatar
    Join Date
    Feb 2012
    Location
    UK, USA, Thailand
    Posts
    6,719
    Blog Entries
    17
    Hi Hank,

    It's 8,8,8
    Principal developer of Lianja, Recital and other products

    Follow me on:

    Twitter: http://twitter.com/lianjaInc
    Facebook: http://www.facebook.com/LianjaInc
    LinkedIn: http://www.linkedin.com/in/barrymavin

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Journey into the Cloud
Join us