Jump to content

HMAC-SHA1 implementation in LSL


You are about to reply to a thread that has been inactive for 2257 days.

Please take a moment to consider if this thread is worth bumping.

Recommended Posts

Hello, I'm looking for a script to hash something HMAC-SHA1.

I saw that LL will maybe soon release llHMACSHA1 (https://jira.secondlife.com/browse/BUG-214745?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel) but i'm looking such function now :P

I also find this https://github.com/gistya/LSL-HMAC-SHA1-Fast

But it does not properly work for me, neither for other ppl (https://github.com/gistya/LSL-HMAC-SHA1-Fast/issues/1)

Can you help me ? thank you

Edited by samuel22200 Naxos
Link to comment
Share on other sites

llSHA1String is available in LSL.

I use that when signing logging info I send from vehicles to my server. The data may be used for race timing and distance traveled awards, so I wanted some basic security.

LSL is that LSL doesn't have a type for an array of bytes. What you get from llSHA1String is a text string in hex. The standard HMAC-SHA1 algorithm needs the result from the first hashing round in binary to be fed to round 2. This is not something you can do in LSL easily. Representing a string of bytes as a list of integers and doing your own arithmetic is possible but not fun. If you're writing your own authentication, you can work with strings only, but if you're trying to be binary compatible with something else, it's going to be tough.

Edited by animats
Link to comment
Share on other sites

You are about to reply to a thread that has been inactive for 2257 days.

Please take a moment to consider if this thread is worth bumping.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...