Skip to content

Support "PHC String Format" for argon2(id) hashingΒ #12094

@DavidBuchanan314

Description

@DavidBuchanan314

The reference implementation of argon2 supports an output format that encodes the hashing parameters, along with the hash itself. This is useful, for example, if you're storing password hashes in a database and you want to upgrade the parameters (or even the algorithm itself) over time.

The format is documented here: https://github.com/P-H-C/phc-string-format/blob/master/phc-sf-spec.md

The format is supported by other argon2 libraries/implementations, including https://github.com/hynek/argon2-cffi

Similar serialisation formats exist for most hashing schemes, and passlib supports many of them (including argon2).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions