Flowdock
method

secure_compare

Importance_1
Ruby on Rails latest stable (v5.2.3) - 0 notes - Class: SecurityUtils
secure_compare(a, b) private

Constant time string comparison, for variable length strings.

The values are first processed by SHA256, so that we don’t leak length info via timing attacks.

Show source
Register or log in to add new notes.