method
fixed_length_secure_compare
v5.2.3 -
Show latest stable
- Class:
ActiveSupport::SecurityUtils
fixed_length_secure_compare(a, b)private
Constant time string comparison, for fixed length strings.
The values compared should be of fixed length, such as strings that have already been processed by HMAC. Raises in case of length mismatch.