read description (hashing related)
so literally i run a website off of lune with net.serve because its convenient so i dont have to learn node.js but - one thing is itching me, no serde.argon2("id" | "d" | "i", input, salt?, pepper?) so yeah can you guys add it
serde.hash("argon2", message) should be close, although you cannot specify a salt and pepper.
serde.hash("argon2", message)should be close, although you cannot specify a salt and pepper.
is this argon2id?
notice how there is no argon2:
HashAlgorithm
A hash algorithm supported by the Serde library.
Currently supported algorithms:
| Name | Learn More |
|---|---|
| md5 | https://en.wikipedia.org/wiki/MD5 |
| sha1 | https://en.wikipedia.org/wiki/SHA-1 |
| sha224 | https://en.wikipedia.org/wiki/SHA-2 |
| sha256 | https://en.wikipedia.org/wiki/SHA-2 |
| sha384 | https://en.wikipedia.org/wiki/SHA-2 |
| sha512 | https://en.wikipedia.org/wiki/SHA-2 |
| sha3-224 | https://en.wikipedia.org/wiki/SHA-3 |
| sha3-256 | https://en.wikipedia.org/wiki/SHA-3 |
| sha3-384 | https://en.wikipedia.org/wiki/SHA-3 |
| sha3-512 | https://en.wikipedia.org/wiki/SHA-3 |
| blake3 | https://en.wikipedia.org/wiki/BLAKE3 |
Yeah sorry, argon2 is currently not supported. Issue is valid.
-- Proposed API design serde.argon2( variant, -- "id" | "i" | "d" input, -- string to hash salt or nil, -- optional salt, defaults to nil pepper or nil, -- optional pepper, defaults to nil options or nil -- optional table { memoryCost, iterations, parallelism } ) https://github.com/P-H-C/phc-winner-argon2 ( you will have to convert to rust or call a c rust binding or binary or some dll)