MD5 Digest

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
SirWobbyTheFirst
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 246
Joined: Tue Jun 30, 2009 11:15 pm

MD5 Digest

Post by SirWobbyTheFirst » Sun Oct 11, 2009 5:12 pm

This is probably a bit of a noob question to ask but be gentle with me. :roll:

I've read about the MD5Digest function in the dictionary and i was wondering if there was any way to get the value for a stack file.

I was considering it because i am wanting my software to be able to check the value before allowing the stack to be opened.

Any help would be very much appreciated. Thanks.

BvG
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1239
Joined: Sat Apr 08, 2006 1:10 pm
Contact:

Post by BvG » Sun Oct 11, 2009 5:54 pm

Code: Select all

put url ("binfile:" & "path/to/stack.rev") into theData
put the md5digest of theData into theDigest
edit: oops, typo
Last edited by BvG on Sun Oct 11, 2009 6:00 pm, edited 1 time in total.
Various teststacks and stuff:
http://bjoernke.com

Chat with other RunRev developers:
chat.freenode.net:6666 #livecode

SirWobbyTheFirst
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 246
Joined: Tue Jun 30, 2009 11:15 pm

Post by SirWobbyTheFirst » Sun Oct 11, 2009 5:56 pm

Thanks alot BvG. Just what i was looking for. :)

Post Reply