password_hash(string $pw, int $algo, array $options) : string
password_verify(string $pw, string $hash) : bool
Options:

  • memory_cost: Maximum memory to compute the hash. Defaults to 64kb.
  • time_cost: Maximum amount of time to compute the hash. Defaults to 4.
  • threads: Number of threads to use for computing the hash. Defaults to 1.