Play Strawberry Docs
Referencia

Esta página se muestra en inglés.

password

Argon2id password hashing and checking done by the server, as jobs the script polls.

Declarations from the script contract strawberry:plugin, version 0.2.0, without source comments.

How to use it: guide.

WIT declarations

text
resource password-hash-job {
    poll: func() -> option<result<string, string>>;
}

resource password-verify-job {
    poll: func() -> option<result<password-check, string>>;
}

record password-check {
    matches: bool,
    needs-rehash: bool,
}

hash-password: func(password: string) -> password-hash-job;
verify-password: func(password: string, phc: string) -> password-verify-job;

En esta página