Using Md5Digest on stacks loaded in memory
Alejandro Tejada
capellan2000 at yahoo.com
Fri Dec 24 18:24:59 EST 2004
Hi Developers,
Recently, i had been working on
refining some of my stacks for distribution
among fellow teachers and i had been
experimenting with security issues.
I'll like that my player app verify
that the stacks that i send them were
not tampered in any way, so i'm working
in a verification system that could use
the built-in md5digest function.
I could verify the md5digest of a stack stored
in the hard disk with the following code:
put url "binfile:C:/WINDOWS/Escritorio/myStack.rev"
into zxs
-- zxs is a local variable
put binaryDecode("H*",md5Digest(zxs),tHexDigest)
-- convert the binary data of md5digest in hexadecimal
put tHexDigest
-- write the results in the message box
and could verify the md5digest of a file stored
as a custom property with the following code:
set the customProperty_01 of the topstack to url
"binfile:C:/WINDOWS/Escritorio/md5sums.exe"
-- i have included the file within the topstack
put binaryDecode("H*",md5Digest(the customProperty_01
of the topstack),tHexDigest)
-- converting in hexadecimal the binary result of the
md5digest function
put tHexDigest
-- write the results in the message box
But, How could i get the md5Digest of a
stack loaded in memory?
This code does not works in my side:
put binaryDecode("H*",md5Digest(the
topstack),tHexDigest)
put tHexDigest
It produces a different result than the
code that reads the stack from the Hard Disk...
Thanks in advance for your help.
My best wishes for this new year! :-)
al
=====
Visit my site:
http://www.geocities.com/capellan2000/
__________________________________
Do you Yahoo!?
Send holiday email and support a worthy cause. Do good.
http://celebrity.mail.yahoo.com
More information about the use-livecode
mailing list