The salt is not a secret, and that is the point
A salt is random bytes stored beside the hash. It makes two identical passwords produce different records, so an attacker cannot hash one guess once and match every account at the same time, and it defeats a table of precomputed hashes. Sixteen bytes is the usual size. It does not need to be secret, it does not need to be encrypted, and deriving it from the password (a "pepper" made of the password itself) removes the only property it has.
A pepper, by contrast, is a secret key mixed in as well, kept outside the database. It helps against a database dump alone and does nothing against a full server compromise. PBKDF2 accepts an extra key only through HMAC's key, which is why a pepper is usually applied as HMAC(pepper, pbkdf2(password, salt)) rather than an argument.
What an iteration count buys
Each iteration is an HMAC over the previous output, so the total cost is linear in the count and identical for the defender and the attacker. Doubling the count doubles both. That only helps if the attacker's cost per guess is higher than yours: a GPU does SHA-256 thousands of times faster than a CPU core, so the defender pays more than the attacker in absolute terms.
This is why PBKDF2 is the weaker of the two current answers. Argon2id makes memory the cost, and a graphics card has far less memory bandwidth than raw hash throughput, so the attacker's advantage shrinks. Where Argon2id is available, it is the recommendation. Where a standard, a library or a compliance rule requires PBKDF2, a measured count in the hundreds of thousands is the right answer, and the record format here makes raising it later possible.
The measured call, not the quoted one
The benchmark tab derives the same password and salt at 1,000, 10,000, 100,000 and the count you set, one after another. The numbers are for this machine and this browser: a phone is often five to ten times slower than the laptop a developer tests on. The useful question is not "is 600,000 enough" but "what does 600,000 cost on the hardware that will run this login", and the answer is a number of milliseconds you can see.
A common target is under about a quarter of a second per login on the real server. Above that, a login feels slow and a burst of attempts can starve the service. The record keeps the count, so a later decision to raise it can be applied at the next password change instead of locking everyone out.
Constant time, and why a string compare is wrong
Comparing two keys with === returns as soon as one byte differs. If an attacker can measure that time, the number of correct leading bytes is a signal, and a guess can be built one byte at a time. The verifier here XORs every byte of both keys and checks the accumulator once, so the time does not depend on where they differ. This matters less over a network than in a local timing attack, and it is cheap enough that there is no reason not to do it.
What a record has to carry
The line this page writes is pbkdf2-sha256$100000$<salt base64>$<key base64>. Django's own format, pbkdf2_sha256$iterations$salt$hash, is the same shape, which is why a Django hash verifies here. The parameters have to travel with the hash: a key with no count cannot be recomputed, and a database of bare hashes cannot be upgraded when the guidance moves. That mistake is old and still common, and it is the one thing on this page worth checking in your own schema.
For checksums and file identity rather than passwords, Pikkola Hash is the fast digest. For the session a login creates, Pikkola JWT covers the token.