Description Usage Arguments Value Author(s) See Also Examples
This function adds salt (stochastic or deterministic) to a character of strings prior to a hashing of the complete string.
1 | saltedHash(salt, x, algo = "sha256", ...)
|
salt |
A character containing the salt |
x |
A character vector of the strings to be hashed. |
algo |
The hashing algorithm used. See |
... |
Additional parameters passed to |
A character vector
Anders Ellern Bilgrau <anders.ellern.bilgrau (at) gmail.com>
1 2 3 | x <- c("AVerySecretString", "AnotherSecretSting")
saltedHash("SomeSalt", x = x, algo = "md5")
#digest(paste0("SomeSalt", "AVerySecretString"), algo = "md5")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.