The hashing algorithm used for password verification is a one-way hashing function.
BCrypt hashing and verification use random letters called salt and a cost variable to produce unpredictable hash results.
BCrypt stores the algorithm, cost, and salt alongside the hash result for future verification.
To verify a password, the algorithm, cost, and salt are extracted from the stored hash, and the same process with the extracted values is used to generate a new hash for comparison.