lune icon indicating copy to clipboard operation
lune copied to clipboard

read description (hashing related)

Open vaxtalastus-web opened this issue 2 months ago • 5 comments

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

vaxtalastus-web avatar Nov 07 '25 07:11 vaxtalastus-web

serde.hash("argon2", message) should be close, although you cannot specify a salt and pepper.

CompeyDev avatar Nov 09 '25 09:11 CompeyDev

serde.hash("argon2", message) should be close, although you cannot specify a salt and pepper.

is this argon2id?

vaxtalastus-web avatar Nov 10 '25 03:11 vaxtalastus-web

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

vaxtalastus-web avatar Nov 10 '25 03:11 vaxtalastus-web

Yeah sorry, argon2 is currently not supported. Issue is valid.

CompeyDev avatar Nov 10 '25 14:11 CompeyDev

-- 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)

vaxtalastus-web avatar Nov 18 '25 02:11 vaxtalastus-web