I am looking for a very difficult/slow hashing function to hash secrets used to decrypt env files. Because it is used to log when the env files "keys" get recreated I don't need it to be fast, ideally close to a full second to calculate because I will be in trouble if the keys get stolen but I want to log when I changed them and log a hash of the keys so I can debug in the future.
Argon2 is the current standard for password-hashing schemes, which are designed to be slow and more importantly expensive to parallel adversaries, even if they have hardware support. You can tune its speed via the memory and the time parameter, either of which should affect run-time linearly. Anyways, the paper in the repository should contain a guide on how to experimentally configure the parameters for your application.