I suggest not to use the word anonymous in the hash_names docs, unless it is clear to the user that this will only be the case if he/she uses a secret salt.
In addition, I think it would be good to use digest::hmac in case the user provides a secret salt.
digest::hmac("my secret secret", "my message", algo = "sha512")https://security.stackexchange.com/a/61878
I suggest not to use the word anonymous in the
hash_names
docs, unless it is clear to the user that this will only be the case if he/she uses a secret salt.In addition, I think it would be good to use
digest::hmac
in case the user provides a secret salt.digest::hmac("my secret secret", "my message", algo = "sha512")
https://security.stackexchange.com/a/61878Also I guess a SHA-2 (https://en.wikipedia.org/wiki/SHA_hash_functions) algo should be used by default.