Webmastor’s Gadgets
This page provides gadgets for helping to create Fingerprints and other digitally-altered artifacts.
Salted Hash
This tool will generate an (optionally salted) hash using the SHA-256 algorithm. Hash algorithms such as SHA-256 are typically suitable for Fingerprints pursuant to Rule 2681.
Salting is recommended to prevent guessing, particularly for simple actions. A salt can be any text inserted into the plaintext before hashing, but should generally not be able to be mistaken for game actions. Some examples of strong salts include:
- Four or more dictionary words chosen at random.
- A sentence.
This interface separates the salt from the plaintext, but one could easily salt their own plaintext. Putting a salt of Hello
and a plaintext of World
in this interface is identical to putting a plaintext of:
Hello
World
The process used to generate this hash is as follows:
- We remove leading and trailing whitespace from each line of both the salt and the plaintext and trim any empty lines at the beginning or end.
- We standardize all new-line characters to
\n
. - If
salt
is given, we combine the salt and plaintext (salt + newline + plaintext). - We run the bytes of the text through SHA-256 encryption.
- We encode the result in base 64 for displaying.
After step 2, we update the values you provided to reflect the processed values used.
You should specify the process to recreate the hash and/or link back to this page when you make your commitment. If steps 1–3 do not affect your input, you can just refer to it as a “base-64 encoded SHA-256 hash”.
Implementation Notes
This page runs entirely in your browser. Values do not leave your computer.
The source code for this page is available in the Webmastor’s GitHub repository.