Matrix Version: 5.4.0.2
Does Matrix have SHA256 capabilities? I can see SHA1 keyword only.
Matrix Version: 5.4.0.2
Does Matrix have SHA256 capabilities? I can see SHA1 keyword only.
What specific functionality around SHA256 are you after?
The API which we are using requires you to use sha256 as part of signing requests. The steps for signing a request are:
Thanks for explaining. So would a ^SHA256 keyword modifier similar to the SHA1 be useful?
Hi Bart,
Can you confirm if SHA256 works/exists for Matrix 5.4+?
Wanting to test out the Cloudinary API/Widget and the Media Gallery requires generating auth signature in order to connect.
Thanks,
Tuguldur
Not as of 5.5.1.5 at least.
$ grep -n "sha\|md5" general/text.inc
959: case "md5":
960: return md5($text);
962: case "sha1":
963: return sha1($text);
2041: $hash = '<!-- x'.md5($ssjs_block).strlen($ssjs_block).'x -->';
Yea we don’t have a modifier for that. But perhaps you could do it with SSJS and using something like https://github.com/emn178/js-sha256 ?