In core/src/Core/User.php
you have this :
public function setPasswordAttribute($value)
{
$this->attributes['password'] = $value ? static::$hasher->make($value) : '';
}
and
static::$hasher->check($password, $this->password);
so I think you can start from here ?