DES-CBC 16 Byte HEX key

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Tricky
    New Member
    • Dec 2008
    • 4

    DES-CBC 16 Byte HEX key

    Hello all,

    I have a requirement to decrypt a string that has apparently been encrypted using the DES algorithm in CBC mode. There seems to be no shortage of information around relating to how this can be achieved within .NET however my hurdle seems to be a more fundamental understanding of strings (bytes/hex - encoding??).

    Documentation on single DES-CBC all clearly specifies the requirement is an 8 byte key. The key being supplied to us however is a 16 Byte HEX format. (E.G "E61CC4F71C0173 67")

    What is it exactly that I need to understand to make this 16 Byte Hex key work to decrypt using DES-CBC?

    Any direction with how to approach this problem is much appreciated. Thanks in advance.
  • Sharaola
    New Member
    • Dec 2008
    • 10

    #2
    As i know u can use triple DES with two keys which is much more secure

    Comment

    • Tricky
      New Member
      • Dec 2008
      • 4

      #3
      Sharaola,

      Unfortunately, I have no control over the method of encryption that has been chosen as the data is being supplied by a different company who do not answer to us. TripleDES is therefore not a possibilty.

      I have no choice but to "understand " the problem and solve it.

      Comment

      • Sharaola
        New Member
        • Dec 2008
        • 10

        #4
        Originally posted by Tricky
        Sharaola,

        Unfortunately, I have no control over the method of encryption that has been chosen as the data is being supplied by a different company who do not answer to us. TripleDES is therefore not a possibilty.

        I have no choice but to "understand " the problem and solve it.
        I understand the problem , but the Single DES key is only 64 bit "and actually 56 bit in operation" , the only way is to make your program exclude the extra bits and deal with only 64 bits.

        Hope i can help , but i reply as i understand the situation

        Comment

        • Tricky
          New Member
          • Dec 2008
          • 4

          #5
          Sharola your reply is appreciated.

          I agree that the 16 byte key needs to be stripped back to the 8 byte representation for DES. I lack the basic neccessary understanding of this procedure hence my original post :

          "my hurdle seems to be a more fundamental understanding of strings (bytes/hex - encoding??)"

          "What is it exactly that I need to understand to make this 16 Byte Hex key work to decrypt using DES-CBC?"

          Are you able to assist with this specifically?

          Comment

          • Sharaola
            New Member
            • Dec 2008
            • 10

            #6
            No sir , if u reach , inform me plz , thanks

            Comment

            • nukefusion
              Recognized Expert New Member
              • Mar 2008
              • 221

              #7
              I realize that you probably haven't posted the exact key, but is the example one the same length as the real key?

              I only ask because if so, then that is an 8 byte key. 2 hexadecimal characters is equal to 1 byte, so your 16 character hexadecimal key is in fact an 8 byte key.

              Comment

              Working...