Methods
Class Public methods
secure_compare(a, b)
Link
Constant time string comparison.
The values compared should be of fixed length, such as strings that have already been processed by HMAC. This should not be used on variable length plaintext strings because it could leak length info via timing attacks.