by anonymouz · 14y ago · 0 comments
I can only guess that the rawTransforms.json and userHashTransform.json are kept by some server, and the user is then authenticated against this? If so, why not use some standard method? (bcrypt, scrypt?)
In any case, creating your own hash function or making up your own secure authentication procedure should generally be considered a big red flag. Chances are, whatever authentication issue you're trying to solve, there is already a standard way for it: Stick to it.
Remember: It's trivial to create a security scheme you cannot break, but very hard to create one that somebody else cannot break.
If I change the additions in my algorithm to multiplications I can avoid some issues others have pointed out.
I'm not familiar with Github pages, but it seems one cannot store anything on the server-side, it's just HTML+JS. If nothing is sent to any server, there does not seem anything to authenticate or protect from anyone.