# Javascript Password Generator

**URL:** <https://forum.freecodecamp.org/t/javascript-password-generator/325969>\
**Category:** I Built This\
**Created:** [November 9, 2019, 12:34pm UTC](https://forum.freecodecamp.org/t/javascript-password-generator/325969 "2019-11-09T12:34:09Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![matyiu](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/matyiu/32/59278_2.png) [@matyiu](https://forum.freecodecamp.org/u/matyiu)\
**Post date:** [November 9, 2019, 12:34pm UTC](https://forum.freecodecamp.org/t/javascript-password-generator/325969/1 "2019-11-09T12:34:10Z")

</div>

Hi everyone! I made this [password generator](https://matyiu.github.io/js-password-generator/) as a front end project. To generate the passwords I used the `getRandomValues()` method from the Web Crypto API. What do you think?  
Here is the [code](https://github.com/matyiu/js-password-generator) of the project

---

<div class="post-metadata">

**Author:** ![timagixe](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/timagixe/32/140131_2.png) [@timagixe](https://forum.freecodecamp.org/u/timagixe)\
**Post date:** [November 9, 2019, 2:11pm UTC](https://forum.freecodecamp.org/t/javascript-password-generator/325969/2 "2019-11-09T14:11:37Z")

</div>

Hi,

It looks pretty well. Especially I love those buttons (switch on/off). 🙂

What I can suggest you is to make the `COPY` button disabled when the password is not yet generated. Cause when you enter the app, you can click that `COPY` button and it will copy nothing to the buffer.

I think you will make user experience a little better if the `COPY` button will be only enabled only after the password is actually generated.

---

<div class="post-metadata">

**Author:** ![matyiu](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/matyiu/32/59278_2.png) [@matyiu](https://forum.freecodecamp.org/u/matyiu)\
**Post date:** [November 9, 2019, 2:48pm UTC](https://forum.freecodecamp.org/t/javascript-password-generator/325969/3 "2019-11-09T14:48:41Z")

</div>

I didn’t think of that 😅. I need to start thinking about user experience when starting a project 😁.

I made the copy button background gray and disabled when there is no password, I think that would be ok.

Thank you for your feedback. This was my first time posting a project in a community 😄.

---

<div class="post-metadata">

**Author:** ![ILM](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/ilm/32/363239_2.png) [@ILM](https://forum.freecodecamp.org/u/ILM)\
**Post date:** [January 17, 2021, 7:51pm UTC](https://forum.freecodecamp.org/t/javascript-password-generator/325969/4 "2021-01-17T19:51:35Z")

</div>

Closed on January 17, 2021, 7:51pm UTC


