constant_time_compare
Return True if the two strings are equal, False otherwise.
def constant_time_compare(
val1: string|bytes,
val2: string|bytes
) - > boolean
Return True if the two strings are equal, False otherwise.
Parameters
| Name | Type | Description |
|---|---|---|
| val1 | `string | bytes` |
| val2 | `string | bytes` |
Returns
| Type | Description |
|---|---|
boolean | True if the provided values are identical after being converted to bytes, False otherwise |