This repository has been archived by the owner on Sep 26, 2023. It is now read-only.
Change the hash
action to add a random salt by default (#12, #17).
This change prevents rainbow table style attacks against the output. One can also optionally provide a salt of choice, be it some actual honest to goodness static salt for all values or an empty string (which will obviously then make the behaviour consistent with v0.1.0 where there was no salt added).
The config looks like this for hash
now:
{
"name": "hash",
// The salt to use when hashing. If this key is not set, it will be a random salt
// for all values. If given, it will be the same for all values.
//
// It's completely okay to have an empty value here, ie. don't salt the values
// before hashing. However consider carefully if you really want this risk and
// need the hash to be verifiable!
"salt": "somesalt"
}