I've been melting my brain for some time trying to bring hashing functions to Hollywood and I finally succeeded, but only after endless debugging sessions
You can download the library from Github, here:
https://github.com/Allanon71/lib_sha
The port for Hollywood I brought is based from the source code of Egor-Skriptunoff, his original project is here:
https://github.com/Egor-Skriptunoff/pure_lua_SHA
Here is the list of the implemented (and tested) functions, all of them are stored inside the sha table:
Code: Select all
sha (the main storage)
.md5 (supported natively by Hollywood but ported as an exercise)
.sha1
.sha224
.sha256
.sha512_224
.sha512_256
.sha384
.sha512
.sha3_224
.sha3_256
.sha3_384
.sha3_512
.shake128
.shake256
.hmac
.hex2bin
.base642bin
.bin2base64
See the post on my Patreon page: https://www.patreon.com/posts/58242374
Happy coding!