Skip to content

use a constant string comparison to avoid timing attack #3

@pyramation

Description

@pyramation

as in the discussion here: https://news.ycombinator.com/item?id=26258261#26271329

- Using '=' for comparing TOTPs in the totp.verify function[1] is not safe from timing attacks.

https://github.com/pyramation/totp/blob/7ec3104/packages/totp/sql/launchql-totp--0.0.3.sql#L111

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions