Link : https://password-generator5.netlify.app/
For further actions, you may consider blocking this person and/or reporting abuse
Link : https://password-generator5.netlify.app/
For further actions, you may consider blocking this person and/or reporting abuse
Justin -
Grzegorz Dubiel -
Mrinalini Sugosh (Mrina) -
TheDev -
Top comments (8)
There is an error in your code:
const characterIndex = Math.round(Math.random() * CharacterListLength);
It should be
Math.floor
otherwise you may end up with an index the same as theCharacterListLength
and that would be an invalid index.Also it is a good practice to share a jsfiddle codepen etc so people can play with your code.
Either way, it looks nice! ❤
Math.random()
is not cryptographically secure and must not be used to generate passwords.Instead, use Crypto.getRandomValues().
Thank you so much bro
now it's working properly
Hi there, we encourage authors to share their entire posts here on DEV, rather than mostly pointing to an external link. Doing so helps ensure that readers don’t have to jump around to too many different pages, and it helps focus the conversation right here in the comments section.
If you choose to do so, you also have the option to add a canonical URL directly to your post.
Where is the build process written? Log your journey and tips you discovered while creating this.
I had learned many things
first of all, I created this project because I wanted to revise CSS and js
and I have also learned how to build logic for this kind of project now I'm going to create typing speed test website
Great and good for you. But instead of writing this in here, you could have mentioned your key takeaways in the post itself. Try doing this in your next post. I mean to tell about the whole tech stack you used, react, tailwind, or others, scribble about your build process, you could even warn about certain shortcomings you faced while developing, or if you don't want to take the long road, you can simply make a small TLDR table just for the postulates of your approach. Thanks for sharing and keep reporting your progress!
Thank you so much ❤️️ , Ashish it means a lot to me
from next time I'll definitely take care of these things .