Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1119
  • Last Modified:

DES Decryption tool

Hello

I need to find (or write) a tool that decrypts DES encrypted image files.

As an input it will take the encrypted DES file, and the key (which will be supplied by the user). It should then be possible to decrypt the file using the standard implementation of DES.

I have programmed in C++ a while ago, but I am a bit rusty. Can anyone help me with where I should start if I needed to program this in C++? I don't want to be reproducing code if this has been done before.

Any help or indicators would be really appreciated.

Fennis
0
awesomefennis
Asked:
awesomefennis
  • 8
  • 4
1 Solution
 
AxterCommented:
What is your OS, and what compiler are you using?
0
 
AxterCommented:
FYI:
For single DES, look for the keyword CALG_DES.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/seccrypto/security/cryptexportkey.asp

Check out the following link for projects and wrapper classes using CryptoAPI:
http://www.codeguru.com/Cpp/misc/misc/cryptoapi/
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
AxterCommented:
Here's another link with more CryptoAPI projects:
http://www.codeproject.com/system/#Cryptography
0
 
jkrCommented:
Regardless of the platform you're using, I'd suggest taking a look at http://www.eskimo.com/~weidai/cryptlib.html ("Crypto++® Library 5.2.1")
0
 
awesomefennisAuthor Commented:
The OS is windows.

I will be trying (and I meqan trying as my C++ is not great) to write this tool using Microsoft Visual Studio C++.

If you have any tips on how I should go about this. I have never used MS VS, and it has been a while since I have used C++ regardless.

Thanks,

Fennis
0
 
AxterCommented:
>>If you have any tips on how I should go about this. I have never used MS VS, and it has been a while since I have used C++ regardless.

What version of VC++ do you have?
What compiler have you used before?
0
 
awesomefennisAuthor Commented:
I will be using Visual C++ 2005 express (http://lab.msdn.microsoft.com/express/)

I can't even remember (i'm ashamed to say) what compiler I used before...it was few years back in university!!!

Any help would be really appreciated.

Or if you can just let me know what I should be doing when I start VC++.
0
 
AxterCommented:
From the discription you gave in your question, it sounds like all you need is a console application.

I recommend you make a console application with MFC support.
0
 
awesomefennisAuthor Commented:
I am sure the C++ will come back to me, I'm just a little worried having never used VC++


I presume it should be straight forward, as all it has to do is take a file and a key which both will be user supplied, and then run the DES
decryption algorithm on the file using the key
0
 
AxterCommented:
Why the B grade?

I think for a 100 point question, I gave you an A grade answer.
0
 
awesomefennisAuthor Commented:
Axter,

sorry, i didnt realise that "B" was bad or anything. i thought A was to be used for exceptional answers, which your answer did help me, but i didnt class it as exceptional, but if i am misreading what A,B,C means let me know how I can change it and I will.

I don't want to down play peoples help here, as I do appreciate it.
0
 
AxterCommented:
>>i thought A was to be used for exceptional answers

The grade value has more to do with the completeness of the answer.
Most questioners post an A grade, unless they're not satisfied with the answer, and they've given the expert a chance to give a more satisfactory answer.
For more info, see following EE grading guide lines:
http://www.experts-exchange.com/help.jsp#hi73

>>but if i am misreading what A,B,C means let me know how I can change it and I will.

Don't worry about change it.  Most members (including myself) make this mistake when first joining.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 8
  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now