CONST_EQUALS function


We have introduced a new function to perform constant-time text comparisons: CONST_EQUALS.

CONST_EQUALS("some_text", "some_text")

Regular string comparison (=) stops at the first differing character, while CONST_EQUALS always takes the same amount of time regardless of how similar the strings are. You can use this function when comparing sensitive values like API keys, tokens, passwords, or signatures.

For more information, see our documentation.

Nico Waissbluth