Flowdock
method

secure_compare

Importance_1
v5.1.7 - Show latest stable - 0 notes - Class: SecurityUtils
secure_compare(a, b) public

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.

Show source
Register or log in to add new notes.