OxL Справочник OxL
РусскийEnglish

method password.verify

Checks pw against a text made by hash; a malformed text is simply false.

Example:

oxl✓ проверяется в CI
use std.crypto { password }

fn main() io, rand {
  let h = password.hashWith("pw", 10)
  print("{password.verify("pw", h)}")
}
Вывод
true
pub(api) static fn verify(pw: str, encoded: str) -> bool

С версии. 1.0.0-beta

Параметры

ИмяТип
pwstr
encodedstr

Возвращает

bool

Эффекты

не объявлены (чистая, пока тело не говорит иное)

Определено в: std/crypto/crypto.oxl:823

См. также