Authenticating against current password

We need to be able to export our Kirby user set and mirror it into a database (then also be able to auth against these users in another 3rd part tool), so we can take the hashed passwords from the .htpasswd files, but how would we then authenticate against the hashed passwords? (hopefully just a case of copying a bit of PHP from behind the scenes, but not sure where to look).

Kirby uses the native PHP password_verify() function to verify the user passwords.

Thank you, that was easy!