r/WebdevTutorials • • Feb 10 '20

Password Strength Meter in pure JS: JavaScript tutorial

https://www.youtube.com/watch?v=5PbEldBmBzU
39 Upvotes

5 comments sorted by

4

u/[deleted] Feb 10 '20

Why tho?

2

u/kmisterk Feb 10 '20

Ok, so, not being sarcastic, but sincerely curious, why not?

Like, it seems to be a decent idea if you're not using any other non-JS languages to do password validation like this.

What would you recommend instead?

3

u/[deleted] Feb 10 '20

Oh for sure. Javascript itself is intrinsically vulnerable at the application level. This is just a fact of web design. I'm not saying this is bad, it's a nice exercise. I'm just saying it's not viable for real world deployment. Please correct me if I am wrong however, i'm usually the one breaking in, not making the door.

2

u/ms-maria-ma Feb 10 '20

Any security check on the frontend side is just... the joke, maybe? All the verification should be done on the server-side. But for UX, it is a good idea to inform the user about the password's strength. Concerning "the real world deployment" I would not recommend reinventing the wheel and simply use any of the trustful production-ready libraries. Nonetheless, from the educational perspective, why not?

1

u/kmisterk Feb 10 '20

I don’t know enough about the subject matter to tell you one way or another. However, having my primary focus in learning right now be heavily JavaScript-Based, it’s cool seeing this type of thing both showcased and critiqued.