0

Can anyone help me getting started with this? We have a current keygen for a set of our apps that's using des-ede2 in C++.

I need to make my vb.net app validate keys generated by that keygen. Anyone have any ideas where to start?

I'm googling like mad, but hoping someone can point me in the right direction.

Thank you!

shaiss
  • 2,000
  • 5
  • 22
  • 33
  • This is a good example, BUT, when I decrypt a known key it returns garbage. I made sure the "key" is correct http://addressof.com/blog/archive/2004/10/19/997.aspx – shaiss Aug 26 '09 at 01:08
  • How do you want to validate that keys? – tuergeist Aug 26 '09 at 07:53
  • From my understanding from our old developer. Once you decode the key you will have the order information there, based on that you validate. – shaiss Aug 26 '09 at 15:37
  • From my research looks like this is not possible. Anyone have anything? – shaiss Aug 31 '09 at 20:43

1 Answers1

1

There are two different aspects of a key you might want to check; wheter the key is a valid des key or if it's the key which some kind of data has been encrypted with.

A key can be used if the bit parity (http://en.wikipedia.org/wiki/Parity_bit) of each key byte is odd.

As your title suggests you want to implement des in vb.net and then check if data has been encrypted with this key. This is only possible if you know some part of the original content (i.E. how it starts, chars that are likely or unlikely to occur, etc. the more unspecific, the more false-positives). If you really plan to implement des in vb.net i suggest reading the original standard document. IMO the best way to learn about how des works. http://csrc.nist.gov/publications/fips/fips46-3/fips46-3.pdf

svens
  • 11,438
  • 6
  • 36
  • 55