Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. TriplesDES error

TriplesDES error

Scheduled Pinned Locked Moved Visual Basic
csharphtmlcomsecurity
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    TheMrProgrammer
    wrote on last edited by
    #1

    Hi I searched google for encryption algorithms to use in vb 2008 and got one listed in CodeProject listed at Making TripleDES Simple in Visual Basic .NET[^] It encrypts the string fine but is not able to decrypt it and shows the following message. Length of the data to decrypt is invalid. I searched google for the solution but not got any satisfying one. what to do now?

    TheMrProgrammer http://www.icbse.com/2009/funny-exam-answers-school-students http://download.cnet.com/TheCalcMan/3000-2094\_4-10958266.html

    L 1 Reply Last reply
    0
    • T TheMrProgrammer

      Hi I searched google for encryption algorithms to use in vb 2008 and got one listed in CodeProject listed at Making TripleDES Simple in Visual Basic .NET[^] It encrypts the string fine but is not able to decrypt it and shows the following message. Length of the data to decrypt is invalid. I searched google for the solution but not got any satisfying one. what to do now?

      TheMrProgrammer http://www.icbse.com/2009/funny-exam-answers-school-students http://download.cnet.com/TheCalcMan/3000-2094\_4-10958266.html

      L Offline
      L Offline
      Luc Pattyn
      wrote on last edited by
      #2

      Prankur Rusia wrote:

      what to do now?

      fix the bug in your code. Make sure what the encryption generated is entered into the decryptor without any change. without any details, noone can help you. :)

      Luc Pattyn [Forum Guidelines] [My Articles]


      The quality and detail of your question reflects on the effectiveness of the help you are likely to get. Show formatted code inside PRE tags, and give clear symptoms when describing a problem.


      T 1 Reply Last reply
      0
      • L Luc Pattyn

        Prankur Rusia wrote:

        what to do now?

        fix the bug in your code. Make sure what the encryption generated is entered into the decryptor without any change. without any details, noone can help you. :)

        Luc Pattyn [Forum Guidelines] [My Articles]


        The quality and detail of your question reflects on the effectiveness of the help you are likely to get. Show formatted code inside PRE tags, and give clear symptoms when describing a problem.


        T Offline
        T Offline
        TheMrProgrammer
        wrote on last edited by
        #3

        Hi Luc, Can you please tell me what details you want? My code is exactly as listed in the article shown above. The string to encrypt is: encryptitman The key I use is: 123456789012345678901234 The iv I use is : 12345678 The encryption goes on fine but the code is not able to decrypt the encrypted string. I supply the encrypted string exactly to the decrypt function.

        TheMrProgrammer http://www.icbse.com/2009/funny-exam-answers-school-students http://download.cnet.com/TheCalcMan/3000-2094\_4-10958266.html

        L 1 Reply Last reply
        0
        • T TheMrProgrammer

          Hi Luc, Can you please tell me what details you want? My code is exactly as listed in the article shown above. The string to encrypt is: encryptitman The key I use is: 123456789012345678901234 The iv I use is : 12345678 The encryption goes on fine but the code is not able to decrypt the encrypted string. I supply the encrypted string exactly to the decrypt function.

          TheMrProgrammer http://www.icbse.com/2009/funny-exam-answers-school-students http://download.cnet.com/TheCalcMan/3000-2094\_4-10958266.html

          L Offline
          L Offline
          Luc Pattyn
          wrote on last edited by
          #4

          The article is followed by some discussions, where one of the participants is having the problems you're having, and he came up with a solution for it. If it still would not work, you'd better post there. :)

          Luc Pattyn [Forum Guidelines] [My Articles]


          The quality and detail of your question reflects on the effectiveness of the help you are likely to get. Show formatted code inside PRE tags, and give clear symptoms when describing a problem.


          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups