Hmac-SHA512

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

Moderators: heatherlaine, Klaus, FourthWorld, robinmiller, kevinmiller

Post Reply
adventuresofgreg
Posts: 304
Joined: Tue Oct 28, 2008 1:23 am
Contact:

Hmac-SHA512

Post by adventuresofgreg » Mon Dec 18, 2017 2:06 pm

Hello. I need the SHA512 hash function, and Mark Smith's library only contains up to 256:

http://www.webring.org/l/rd?ring=runtim ... evstuff%2F

I notice that LV v9 includes a "messageAuthenticationCode", but I'm confused as to the "key" requirement.

I'm sending a REST command to a server, and part of the command containing a users private key must be hashed.

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 6106
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

Re: Hmac-SHA512

Post by FourthWorld » Mon Dec 18, 2017 6:51 pm

V9's messageDigest function includes built in support for SHA256. I don't know if it also includes SHA512, but if not submit a request and maybe they can add it before so goes final.
Richard Gaskin
Community volunteer LiveCode Community Liaison

LiveCode development, training, and consulting services: Fourth World Systems: http://FourthWorld.com
LiveCode User Group on Facebook : http://FaceBook.com/groups/LiveCodeUsers/

Post Reply

Return to “Talking LiveCode”