Re: DES result


[ Follow Ups ] [ BasicCard User Forum ]

Posted by christian (195.4.207.118) on October 18, 2007 at 13:01:11:

In Reply to: DES result posted by jacquesg on October 17, 2007 at 15:30:05:

What exactly did you do to get to your conclusion? Because if I run the following ZCBasic terminal program, DES works as expected and yields the same results as the web page you mentioned.

' program starts here

Option Implicit

msg$=chr$(&h00,&h00,&h00,&h00,&h00,&h00,&h00,&h00)
key$=chr$(&h3b,&h38,&h98,&h37,&h15,&h20,&hf7,&h5e)

res$=DES(1, key$, msg$)

for i%=1 to 8
print hex$(asc(mid$(res$,i%,1)));" ";
next


Follow Ups:


[ Follow Ups ] [ BasicCard User Forum ]