The SHA512 class was ported from
HMAC functions were ported from
Use example (tested on
void OnStart() { Â Â Â Â Â Â Â Â string in="Thanks for using!"; Â Â Â Â Â Â Â Â string out=SHA512::sha512(in); Â Â Â Â Â Â Â Â Print("sha512('", in, "'): ", out); Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â string key="hash_key"; Â Â Â Â Â Â Â Â out=SHA512::hmac(in, key); Â Â Â Â Â Â Â Â Print("hmac-sha512: ", out); } OUTPUT sha512('Thanks for using!'): efa2046d83de5504f28fc95e470e726f7f26f4a53475c516759a109a1553850e0836d1fb7a6ff54d27fa816e4ef8f93b6c63c8a133b3a39a8218313a506b870e hmac-sha512: 61d45921efeb4fe22dc7f4afb393ddfc5603a5b1775cb377d0428d40fb49a8be89c606d89b3489a848105f67feeb329a7cda029d3b9b5f412436f87c016d83ed
————–