HF RL Explorer

Task: Implement Secure Password Salt Generation

Task: Implement Secure Password Salt Generation: a task in Terminal-Lego-15k (Harbor dataset). You are reviewing a legacy PHP codebase that uses time() as a salt for password hashing with SHA512. Security auditors have flagged this as a vulnerability. Your task is to understand why time() is a…

The task

You are reviewing a legacy PHP codebase that uses `time()` as a salt for password hashing with SHA512. Security auditors have flagged this as a vulnerability. Your task is to understand why `time()` is a poor choice for a salt and implement a secure alternative.

Part of PrimeIntellect/Terminal-Lego-15k.