1. Kathleen
Join Date
Oct 2011
Posts
1

# What is the algorithm and codes of the Advance DES Like Message Digest Computation(ADMC) program?

What is the algorithm and codes of this program: PLEASE HELP MY PROJECT!! TO BE PASSED ON OCTOBER 16..  Reply With Quote

2. cuty
Join Date
Oct 2011
Posts
223

## Re: What is the algorithm and codes of the Advance DES Like Message Digest Computation(ADMC) program? Originally Posted by Kathleen What is the algorithm and codes of this program: PLEASE HELP MY PROJECT!! TO BE PASSED ON OCTOBER 16..
Hi

DES algorithm can be implemented in many ways.You can calculate the lenghts between routers and also you can keep security for systems.

Algorithm:

for each 512-bit chunk of message
break chunk into sixteen 32-bit little-endian words w[j], 0 ≤ j ≤ 15
//Initialize hash value for this chunk:
var int a := h0
var int b := h1
var int c := h2
var int d := h3
//Main loop:
for i from 0 to 63
if 0 ≤ i ≤ 15 then
f := (b and c) or ((not b) and d)
g := i
else if 16 ≤ i ≤ 31
f := (d and b) or ((not d) and c)
g := (5×i + 1) mod 16
else if 32 ≤ i ≤ 47
f := b xor c xor d
g := (3×i + 5) mod 16
else if 48 ≤ i ≤ 63
f := c xor (b or (not d))
g := (7×i) mod 16
temp := d
d := c
c := b
b := b + leftrotate((a + f + k[i] + w[g]) , r[i])
a := temp
end for
//Add this chunk's hash to result so far:
h0 := h0 + a
h1 := h1 + b
h2 := h2 + c
h3 := h3 + d
end for  Reply With Quote

3. Unregistered

## Re: What is the algorithm and codes of the Advance DES Like Message Digest Computation(ADMC) program?

Thank you cuty !!!this is a great help..!!!. Now I can start my project!! my problem now is how to generate a flowchart and pseudocode out of this program...Can you help me please?  Reply With Quote

4. katzkie

## Re: What is the algorithm and codes of the Advance DES Like Message Digest Computation(ADMC) program?

Thanks cuty .... this is a great help.. my problem now is how to create a flowchart and pseudocode for this program..  Reply With Quote