Here is how a password’s hash is generated in Magento 2:
https://github.com/magento/magento2/blob/8fd3e8/lib/internal/Magento/Framework/Encryption/Encryptor.php#L155-L162