title: Password hash generation algorithm in Moodle 3.7
body: <p>How to write a function that generates a password like in moodle, what file is algorithm in, what file is the salt in?</p>
  <p>is it?</p>
  <p>password_hash(
  &quot;123&quot;,
  PASSWORD_BCRYPT,
  array(
  &quot;salt&quot; =&gt; &quot;SALT&quot;
  )
  );</p>