Description

HMAC for Game Maker Language

A couple of scripts related to creating a HMAC (hash-based message authentication code).

Wikipedia Explaination: https://en.wikipedia.org/wiki/HMAC.

Quick start

  • Import the scripts you require into your project.
  • Call them, they will all follow the structure buffer_hmac_{hashtype}(buffer, offset, size, key)

Requirements

  • Game Maker Studio 2 (Untested in GMS1)

Contributing

If you would like to help implement buffer_hmac_sha256 and buffer_hmac_sha512 scripts, I'd happily put them into the Github repository here:

https://github.com/silbinarywolf/fingerprint-gml

A user on the YoYoGames Forums has a HMAC-SHA512 implementation here, however it might require some effort to port it / test it. https://forum.yoyogames.com/index.php?threads/solved-sha512-hmac-script.31253/

Credits

  • JujuAdams for their scr_juju_hmac_sha1_no_dependencies(key, string) script to use as an example.
  • mimsi for their HMAC SHA512 implementation.
  • Gdrooid for their diagram of SHA1-HMAC generation. (Screenshot used for GM Marketplace)

End User Licence Agreement (EULA).

Version 1.0.1. Published March 18, 2018

Age Rating: 4+

Average Rating

This asset hasn't received enough reviews yet.

Your review

You can only review assets you've bought.


Gravatar

Anonymous 22 June 2018

Package contents

Loading, please wait

What is the issue?

Back to Top