GameMaker (2.0 - 2.2.x)
Icon

HMAC Scripts

SilbinaryWolf

You must be logged in to obtain assets

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).

Age Rating: 4+

Version

GMS2 - Version 1.0.1. Published March 18, 2018

Loading, please wait

Package contents

Loading, please wait

What is the issue?

Loading, please wait