Do you receive the Programmer's Heaven newsletter? If not, why not subscribe?

DES implementation in C++ v1.0 (Data Encryption Standard)

DES implementation in C++ v1.0 (Data Encryption Standard)

Submitted By: ParvezMI
Rating: starstar (Rate It)

The algorithm is designed to encipher and decipher blocks of data consisting of 64 bits under control of a 64-bit key (although the effective key strength is only 56 bits). It takes a 64-bit block of plaintext as input and outputs a 64-bit block of cipher text. Since it always operates on blocks of equal size and it uses both permutations and substitutions in the algorithm, DES is both a block cipher and a product cipher.

DES has 16 rounds, meaning the main algorithm is repeated 16 times to produce the cipher text. It has been found that the number of rounds is exponentially proportional to the amount of time required to find a key using a brute-force attack. So as the number of rounds increases, the security of the algorithm increases exponentially.


NOTE: Some downloads must be obtained through publishers´s site.
Do you want to get your software listed on this site? Go to our submissions area.

Screenshot

No Image

Details

File Name:
48501.zip
Product homepage:
Order page:
Languages:
C++
Platforms:
Unknown
Release date:
10/4/2006
License:
Unknown
Size:
3 KB
Price/Fee (US$):
3.00 $
Number of downloads:
3436

Comments (7)

Why I can't build it starstar   Posted by: Karl on Monday, August 27, 2007

I have download the code, and run in Visual
C++ 6.0, but when i bulid it, there is a
error and six warnings:
Compiling...
MAIN.cpp
C:\karl\DES_E_D\MAIN.cpp(311) : warning C4018: '<' : signed/unsigned mismatch
C:\karl\DES_E_D\MAIN.cpp(303) : warning C4101: 't' : unreferenced local variable
C:\karl\DES_E_D\MAIN.cpp(368) : warning C4018: '<' : signed/unsigned mismatch
C:\karl\DES_E_D\MAIN.cpp(416) : warning C4018: '<' : signed/unsigned mismatch
C:\karl\DES_E_D\MAIN.cpp(361) : warning C4101: 't' : unreferenced local variable
C:\karl\DES_E_D\MAIN.cpp(361) : warning C4101: 'a1' : unreferenced local variable
C:\karl\DES_E_D\MAIN.cpp(425) : error C2065: 'clrscr' : undeclared identifier
Error executing cl.exe.

DES_E_D.exe - 1 error(s), 6 warning(s)


What's the problem?

error in DES c++ code starstar   Posted by: FAWAD on Sunday, November 11, 2007

comment clrscr() at line 424 of the code. the error will be removed.

This is a Turbo C++ based code starstar   Posted on Wednesday, February 27, 2008

Hi,

This code is actually written on Turbo C++, if you could understand the logic of it properly, i guess u can convert it to any language.

But, when u are running it in Visual C++, better remove clrscr(),getch() statements.

Regards
Niki

problem in execute the code starstarstarstar   Posted by: Emhemid Almbrouk Alallaghi on Saturday, April 12, 2008

when the screen of execution is get in i see message that mean (the program can't execute because there is no enough resources close your applications and restart your machin )and when i do that i see the same error
and why you ignore 1-//strcpy
2-//fstream("out_file)
when i delete the two ignore i see the next message (general protection exception)

Nice work but i got a question starstarstar   Posted by: Mihir Pandya on Tuesday, May 27, 2008

Greetings,
your program reads a string and if that string is not in multiples of 8 it padds the string with empty spaces, that works fine when encrypting Character strings or files, however if i use same for other binary file they would be corrupted, any solution how to handle 64 bit plain text blocks in binary files ? , because i have also implemented des in c language. Thanks for your prompt reply

clrscr() error starstar   Posted on Monday, June 30, 2008

des in c++\main.cpp(424) : error C2065: 'clrscr' : undeclared identifier

doesnt work star   Posted by: morgoth on Thursday, August 14, 2008

it doesnt work if the crypted text contain zero value the decrypted text is trunked at the same value

Add Your Rating

(Not published)
star
starstar
starstarstar
starstarstarstar
starstarstarstarstar

corner
© 1996-2008. All rights reserved. Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Publisher: Lars Hagelin.
bootstrapLabs Logo A bootstrapLabs project.