A couple of scripts related to creating a HMAC (hash-based message authentication code).
Wikipedia Explaination: https://en.wikipedia.org/wiki/HMAC.
Marketplace Link: https://marketplace.yoyogames.com/assets/6631/hmac-scripts
- Import the scripts you require into your project.
- Call them, they will all follow the structure buffer_hmac_{hashtype}(buffer, offset, size, key)
- Game Maker Studio 2 (Untested in GMS1)
If you would like to help implement buffer_hmac_sha256 and buffer_hmac_sha512 scripts, I'd happily put them into repository.
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/