{"id":5595,"date":"2024-01-11T16:40:00","date_gmt":"2024-01-11T16:40:00","guid":{"rendered":"https:\/\/codehim.com\/?p=5595"},"modified":"2024-01-22T14:45:17","modified_gmt":"2024-01-22T09:45:17","slug":"javascript-random-password-generator","status":"publish","type":"post","link":"https:\/\/codehim.com\/text-input\/javascript-random-password-generator\/","title":{"rendered":"JavaScript Random Password Generator"},"content":{"rendered":"<p>The &#8220;password-generator.js&#8221; is a well-developed JavaScript plugin that helps you to create a random password generator tool for your signup\/registration forms. It allows users to generate a strong password including special characters, numbers, and letters.<\/p>\n<p>The plugin comes with <a href=\"https:\/\/codehim.com\/others\/simple-range-slider-plugin-for-jquery\/\" target=\"_blank\" rel=\"noopener\">a range slider<\/a> and toggle button controls to enable\/disable uppercase letters, lowercase letters, numbers, and symbols for passwords. Users can control the length of passwords through a range slider. Moreover, the generated password can be copied to the clipboard by clicking the copy button.<\/p>\n<p>You can integrate this random password generator tool into your <a href=\"https:\/\/codehim.com\/collections\/login-page-in-html-with-css-code\/\" target=\"_blank\" rel=\"noopener\">signup form<\/a> to allow users to generate a strong password for their accounts.<\/p>\n<h2>How to Create JavaScript Random Password Generator<\/h2>\n<p>1. This password generator tool uses Font Awesome for the copy icon for the generated password copy to the clipboard button. So, load the <a href=\"https:\/\/fontawesome.com\/\" target=\"_blank\" rel=\"noopener\">Font Awesome 5 CSS<\/a> into the head tag of your HTML page.<\/p>\n<pre class=\"prettyprint linenums lang-html\">&lt;!-- Font Awesome 5 --&gt;\r\n&lt;link rel=\"stylesheet\" href=\"https:\/\/cdnjs.cloudflare.com\/ajax\/libs\/font-awesome\/5.11.2\/css\/all.min.css\"&gt;\r\n<\/pre>\n<p>2. Create the HTML structure for the password generator tool as follows:<\/p>\n<pre class=\"prettyprint linenums lang-html\">&lt;div class=\"container\"&gt;\r\n    &lt;h2 class=\"title\"&gt;Password Generator&lt;\/h2&gt;\r\n    &lt;div class=\"result\"&gt;\r\n        &lt;div class=\"result__title field-title\"&gt;Generated Password&lt;\/div&gt;\r\n        &lt;div class=\"result__info right\"&gt;click to copy&lt;\/div&gt;\r\n        &lt;div class=\"result__info left\"&gt;copied&lt;\/div&gt;\r\n        &lt;div class=\"result__viewbox\" id=\"result\"&gt;CLICK GENERATE&lt;\/div&gt;\r\n        &lt;button id=\"copy-btn\" style=\"--x: 0; --y: 0\"&gt;&lt;i class=\"far fa-copy\"&gt;&lt;\/i&gt;&lt;\/button&gt;\r\n    &lt;\/div&gt;\r\n    &lt;div class=\"length range__slider\" data-min=\"4\" data-max=\"32\"&gt;\r\n        &lt;div class=\"length__title field-title\" data-length='0'&gt;length:&lt;\/div&gt;\r\n        &lt;input id=\"slider\" type=\"range\" min=\"4\" max=\"32\" value=\"16\" \/&gt;\r\n    &lt;\/div&gt;\r\n\r\n    &lt;div class=\"settings\"&gt;\r\n        &lt;span class=\"settings__title field-title\"&gt;settings&lt;\/span&gt;\r\n        &lt;div class=\"setting\"&gt;\r\n            &lt;input type=\"checkbox\" id=\"uppercase\" checked \/&gt;\r\n            &lt;label for=\"uppercase\"&gt;Include Uppercase&lt;\/label&gt;\r\n        &lt;\/div&gt;\r\n        &lt;div class=\"setting\"&gt;\r\n            &lt;input type=\"checkbox\" id=\"lowercase\" checked \/&gt;\r\n            &lt;label for=\"lowercase\"&gt;Include Lowercase&lt;\/label&gt;\r\n        &lt;\/div&gt;\r\n        &lt;div class=\"setting\"&gt;\r\n            &lt;input type=\"checkbox\" id=\"number\" checked \/&gt;\r\n            &lt;label for=\"number\"&gt;Include Numbers&lt;\/label&gt;\r\n        &lt;\/div&gt;\r\n        &lt;div class=\"setting\"&gt;\r\n            &lt;input type=\"checkbox\" id=\"symbol\" \/&gt;\r\n            &lt;label for=\"symbol\"&gt;Include Symbols&lt;\/label&gt;\r\n        &lt;\/div&gt;\r\n    &lt;\/div&gt;\r\n\r\n    &lt;button class=\"btn generate\" id=\"generate\"&gt;Generate Password&lt;\/button&gt;\r\n&lt;\/div&gt;\r\n<\/pre>\n<p>3. Style the password generator tool using the following CSS. You can customize the layout and design according to your needs.<\/p>\n<pre class=\"prettyprint linenums lang-css\">.container {\r\n  margin: 20px auto;\r\n  width: 400px;\r\n  height: 600px;\r\n  padding: 10px 25px;\r\n  background: #0a0e31;\r\n  border-radius: 10px;\r\n  -webkit-box-shadow: 0 0 5px rgba(0, 0, 0, 0.45), 0 4px 8px rgba(0, 0, 0, 0.35), 0 8px 12px rgba(0, 0, 0, 0.15);\r\n          box-shadow: 0 0 5px rgba(0, 0, 0, 0.45), 0 4px 8px rgba(0, 0, 0, 0.35), 0 8px 12px rgba(0, 0, 0, 0.15);\r\n  font-family: \"Montserrat\";\r\n}\r\n.container h2.title {\r\n  font-size: 1.75rem;\r\n  margin: 10px -5px;\r\n  margin-bottom: 30px;\r\n  color: #fff;\r\n}\r\n.result {\r\n  position: relative;\r\n  width: 100%;\r\n  height: 65px;\r\n  overflow: hidden;\r\n}\r\n.result__info {\r\n  position: absolute;\r\n  bottom: 4px;\r\n  color: #fff;\r\n  font-size: 0.8rem;\r\n  -webkit-transition: all 150ms ease-in-out;\r\n  transition: all 150ms ease-in-out;\r\n  -webkit-transform: translateY(200%);\r\n          transform: translateY(200%);\r\n  opacity: 0;\r\n}\r\n.result__info.right {\r\n  right: 8px;\r\n}\r\n.result__info.left {\r\n  left: 8px;\r\n}\r\n.result__viewbox {\r\n  width: 100%;\r\n  height: 100%;\r\n  background: rgba(255, 255, 255, 0.08);\r\n  border-radius: 8px;\r\n  color: #fff;\r\n  text-align: center;\r\n  line-height: 65px;\r\n}\r\n.result #copy-btn {\r\n  position: absolute;\r\n  top: var(--y);\r\n  left: var(--x);\r\n  width: 38px;\r\n  height: 38px;\r\n  background: #fff;\r\n  border-radius: 50%;\r\n  opacity: 0;\r\n  -webkit-transform: translate(-50%, -50%) scale(0);\r\n          transform: translate(-50%, -50%) scale(0);\r\n  -webkit-transition: all 350ms cubic-bezier(0.175, 0.885, 0.32, 1.275);\r\n  transition: all 350ms cubic-bezier(0.175, 0.885, 0.32, 1.275);\r\n  cursor: pointer;\r\n  z-index: 2;\r\n}\r\n.result #copy-btn:active {\r\n  -webkit-box-shadow: 0 0 0 200px rgba(255, 255, 255, 0.08);\r\n          box-shadow: 0 0 0 200px rgba(255, 255, 255, 0.08);\r\n}\r\n.result:hover #copy-btn {\r\n  opacity: 1;\r\n  -webkit-transform: translate(-50%, -50%) scale(1.35);\r\n          transform: translate(-50%, -50%) scale(1.35);\r\n}\r\n.field-title {\r\n  position: absolute;\r\n  top: -10px;\r\n  left: 8px;\r\n  -webkit-transform: translateY(-50%);\r\n          transform: translateY(-50%);\r\n  font-weight: 800;\r\n  color: rgba(255, 255, 255, 0.5);\r\n  text-transform: uppercase;\r\n  font-size: 0.65rem;\r\n  pointer-events: none;\r\n  -webkit-user-select: none;\r\n     -moz-user-select: none;\r\n      -ms-user-select: none;\r\n          user-select: none;\r\n}\r\n.options {\r\n  width: 100%;\r\n  height: auto;\r\n  margin: 50px 0;\r\n}\r\n.range__slider {\r\n  position: relative;\r\n  width: 100%;\r\n  height: calc(65px - 10px);\r\n  display: -webkit-box;\r\n  display: -ms-flexbox;\r\n  display: flex;\r\n  -webkit-box-pack: center;\r\n      -ms-flex-pack: center;\r\n          justify-content: center;\r\n  -webkit-box-align: center;\r\n      -ms-flex-align: center;\r\n          align-items: center;\r\n  background: rgba(255, 255, 255, 0.08);\r\n  border-radius: 8px;\r\n  margin: 30px 0;\r\n}\r\n.range__slider::before, .range__slider::after {\r\n  position: absolute;\r\n  color: #fff;\r\n  font-size: 0.9rem;\r\n  font-weight: bold;\r\n}\r\n.range__slider::before {\r\n  content: attr(data-min);\r\n  left: 10px;\r\n}\r\n.range__slider::after {\r\n  content: attr(data-max);\r\n  right: 10px;\r\n}\r\n.range__slider .length__title::after {\r\n  content: attr(data-length);\r\n  position: absolute;\r\n  right: -16px;\r\n  font-variant-numeric: tabular-nums;\r\n  color: #fff;\r\n}\r\n#slider {\r\n  -webkit-appearance: none;\r\n  width: calc(100% - (70px));\r\n  height: 2px;\r\n  border-radius: 5px;\r\n  background: rgba(255, 255, 255, 0.314);\r\n  outline: none;\r\n  padding: 0;\r\n  margin: 0;\r\n  cursor: pointer;\r\n}\r\n#slider::-webkit-slider-thumb {\r\n  -webkit-appearance: none;\r\n  width: 20px;\r\n  height: 20px;\r\n  border-radius: 50%;\r\n  background: white;\r\n  cursor: pointer;\r\n  -webkit-transition: all 0.15s ease-in-out;\r\n  transition: all 0.15s ease-in-out;\r\n}\r\n#slider::-webkit-slider-thumb:hover {\r\n  background: #d4d4d4;\r\n  -webkit-transform: scale(1.2);\r\n          transform: scale(1.2);\r\n}\r\n#slider::-moz-range-thumb {\r\n  width: 20px;\r\n  height: 20px;\r\n  border: 0;\r\n  border-radius: 50%;\r\n  background: white;\r\n  cursor: pointer;\r\n  -webkit-transition: background 0.15s ease-in-out;\r\n  transition: background 0.15s ease-in-out;\r\n}\r\n#slider::-moz-range-thumb:hover {\r\n  background: #d4d4d4;\r\n}\r\n.settings {\r\n  position: relative;\r\n  height: auto;\r\n  widows: 100%;\r\n  display: -webkit-box;\r\n  display: -ms-flexbox;\r\n  display: flex;\r\n  -webkit-box-orient: vertical;\r\n  -webkit-box-direction: normal;\r\n      -ms-flex-direction: column;\r\n          flex-direction: column;\r\n}\r\n.settings .setting {\r\n  position: relative;\r\n  width: 100%;\r\n  height: calc(65px - 10px);\r\n  background: rgba(255, 255, 255, 0.08);\r\n  border-radius: 8px;\r\n  display: -webkit-box;\r\n  display: -ms-flexbox;\r\n  display: flex;\r\n  -webkit-box-align: center;\r\n      -ms-flex-align: center;\r\n          align-items: center;\r\n  padding: 10px 25px;\r\n  color: #fff;\r\n  margin-bottom: 8px;\r\n}\r\n.settings .setting input {\r\n  opacity: 0;\r\n  position: absolute;\r\n}\r\n.settings .setting input + label {\r\n  -webkit-user-select: none;\r\n     -moz-user-select: none;\r\n      -ms-user-select: none;\r\n          user-select: none;\r\n}\r\n.settings .setting input + label::before, .settings .setting input + label::after {\r\n  content: \"\";\r\n  position: absolute;\r\n  -webkit-transition: 150ms cubic-bezier(0.24, 0, 0.5, 1);\r\n  transition: 150ms cubic-bezier(0.24, 0, 0.5, 1);\r\n  -webkit-transform: translateY(-50%);\r\n          transform: translateY(-50%);\r\n  top: 50%;\r\n  right: 10px;\r\n  cursor: pointer;\r\n}\r\n.settings .setting input + label::before {\r\n  height: 30px;\r\n  width: 50px;\r\n  border-radius: 30px;\r\n  background: rgba(214, 214, 214, 0.434);\r\n}\r\n.settings .setting input + label::after {\r\n  height: 24px;\r\n  width: 24px;\r\n  border-radius: 60px;\r\n  right: 32px;\r\n  background: #fff;\r\n}\r\n.settings .setting input:checked + label:before {\r\n  background: #5d68e2;\r\n  -webkit-transition: all 150ms cubic-bezier(0, 0, 0, 0.1);\r\n  transition: all 150ms cubic-bezier(0, 0, 0, 0.1);\r\n}\r\n.settings .setting input:checked + label:after {\r\n  right: 14px;\r\n}\r\n.settings .setting input:focus + label:before {\r\n  -webkit-box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.75);\r\n          box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.75);\r\n}\r\n.btn.generate {\r\n  -webkit-user-select: none;\r\n     -moz-user-select: none;\r\n      -ms-user-select: none;\r\n          user-select: none;\r\n  position: relative;\r\n  width: 100%;\r\n  height: 50px;\r\n  margin: 10px 0;\r\n  border-radius: 8px;\r\n  color: #fff;\r\n  border: none;\r\n  background-image: linear-gradient(135deg, #667eea 0%, #764ba2 100%);\r\n  letter-spacing: 1px;\r\n  font-weight: bold;\r\n  text-transform: uppercase;\r\n  cursor: pointer;\r\n  -webkit-transition: all 150ms ease;\r\n  transition: all 150ms ease;\r\n}\r\n.btn.generate:active {\r\n  -webkit-transform: translateY(-3%);\r\n          transform: translateY(-3%);\r\n  -webkit-box-shadow: 0 4px 8px rgba(255, 255, 255, 0.08);\r\n          box-shadow: 0 4px 8px rgba(255, 255, 255, 0.08);\r\n}\r\n<\/pre>\n<p>4. Finally, include the password generator JavaScript file before the closing of the body tag and done.<\/p>\n<pre class=\"prettyprint linenums lang-html\">&lt;!-- Password Generator JS --&gt;\r\n&lt;script src=\"js\/password-generator.js\"&gt;&lt;\/script&gt;\r\n<\/pre>\n<p>That&#8217;s all! hopefully, you have successfully integrated this JavaScript password generator tool into your project. If you have any questions or suggestions, let me know by comment below.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The &#8220;password-generator.js&#8221; is a well-developed JavaScript plugin that helps you to create a random password generator tool for your signup\/registration&#8230;<\/p>\n","protected":false},"author":1,"featured_media":5598,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[97,116],"tags":[],"class_list":["post-5595","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-text-input","category-vanilla-javascript"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>JavaScript Random Password Generator &#8212; CodeHim<\/title>\n<meta name=\"description\" content=\"Here is a well-developed JavaScript code to create random password generator tool for your signup forms. It generates strong passwords.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/codehim.com\/text-input\/javascript-random-password-generator\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"JavaScript Random Password Generator &#8212; CodeHim\" \/>\n<meta property=\"og:description\" content=\"Here is a well-developed JavaScript code to create random password generator tool for your signup forms. It generates strong passwords.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/codehim.com\/text-input\/javascript-random-password-generator\/\" \/>\n<meta property=\"og:site_name\" content=\"CodeHim\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/codehimofficial\" \/>\n<meta property=\"article:published_time\" content=\"2024-01-11T16:40:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-01-22T09:45:17+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/codehim.com\/wp-content\/uploads\/2021\/09\/javascript-random-password-generator.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1280\" \/>\n\t<meta property=\"og:image:height\" content=\"960\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Asif Mughal\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@CodeHimOfficial\" \/>\n<meta name=\"twitter:site\" content=\"@CodeHimOfficial\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Asif Mughal\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/codehim.com\/text-input\/javascript-random-password-generator\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/codehim.com\/text-input\/javascript-random-password-generator\/\"},\"author\":{\"name\":\"Asif Mughal\",\"@id\":\"https:\/\/codehim.com\/#\/schema\/person\/cc48f1dbe072a89a62a98171b7db43ed\"},\"headline\":\"JavaScript Random Password Generator\",\"datePublished\":\"2024-01-11T16:40:00+00:00\",\"dateModified\":\"2024-01-22T09:45:17+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/codehim.com\/text-input\/javascript-random-password-generator\/\"},\"wordCount\":230,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/codehim.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/codehim.com\/text-input\/javascript-random-password-generator\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/codehim.com\/wp-content\/uploads\/2021\/09\/javascript-random-password-generator.png\",\"articleSection\":[\"Text &amp; Input\",\"Vanilla JavaScript\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/codehim.com\/text-input\/javascript-random-password-generator\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/codehim.com\/text-input\/javascript-random-password-generator\/\",\"url\":\"https:\/\/codehim.com\/text-input\/javascript-random-password-generator\/\",\"name\":\"JavaScript Random Password Generator &#8212; CodeHim\",\"isPartOf\":{\"@id\":\"https:\/\/codehim.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/codehim.com\/text-input\/javascript-random-password-generator\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/codehim.com\/text-input\/javascript-random-password-generator\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/codehim.com\/wp-content\/uploads\/2021\/09\/javascript-random-password-generator.png\",\"datePublished\":\"2024-01-11T16:40:00+00:00\",\"dateModified\":\"2024-01-22T09:45:17+00:00\",\"description\":\"Here is a well-developed JavaScript code to create random password generator tool for your signup forms. It generates strong passwords.\",\"breadcrumb\":{\"@id\":\"https:\/\/codehim.com\/text-input\/javascript-random-password-generator\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/codehim.com\/text-input\/javascript-random-password-generator\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/codehim.com\/text-input\/javascript-random-password-generator\/#primaryimage\",\"url\":\"https:\/\/codehim.com\/wp-content\/uploads\/2021\/09\/javascript-random-password-generator.png\",\"contentUrl\":\"https:\/\/codehim.com\/wp-content\/uploads\/2021\/09\/javascript-random-password-generator.png\",\"width\":1280,\"height\":960,\"caption\":\"JavaScript Random Password Generator\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/codehim.com\/text-input\/javascript-random-password-generator\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/codehim.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Text &amp; Input\",\"item\":\"https:\/\/codehim.com\/category\/text-input\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"JavaScript Random Password Generator\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/codehim.com\/#website\",\"url\":\"https:\/\/codehim.com\/\",\"name\":\"CodeHim\",\"description\":\"Web Design Code Snippets\",\"publisher\":{\"@id\":\"https:\/\/codehim.com\/#organization\"},\"alternateName\":\"Web Design Codes\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/codehim.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/codehim.com\/#organization\",\"name\":\"CodeHim - Web Design Code & Scripts\",\"url\":\"https:\/\/codehim.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/codehim.com\/#\/schema\/logo\/image\/\",\"url\":\"http:\/\/codehim.com\/wp-content\/uploads\/2023\/06\/Codehim-short-logo.jpg\",\"contentUrl\":\"http:\/\/codehim.com\/wp-content\/uploads\/2023\/06\/Codehim-short-logo.jpg\",\"width\":280,\"height\":280,\"caption\":\"CodeHim - Web Design Code & Scripts\"},\"image\":{\"@id\":\"https:\/\/codehim.com\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/codehimofficial\",\"https:\/\/x.com\/CodeHimOfficial\",\"https:\/\/www.instagram.com\/codehim\/\",\"https:\/\/www.linkedin.com\/company\/codehim\",\"https:\/\/co.pinterest.com\/codehim\/\",\"https:\/\/www.youtube.com\/@codehim\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/codehim.com\/#\/schema\/person\/cc48f1dbe072a89a62a98171b7db43ed\",\"name\":\"Asif Mughal\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/codehim.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/b25bfcd7d4e341c2c6f785a88d8ad2a4?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/b25bfcd7d4e341c2c6f785a88d8ad2a4?s=96&d=mm&r=g\",\"caption\":\"Asif Mughal\"},\"description\":\"I code and create web elements for amazing people around the world. I like work with new people. New people new Experiences. I truly enjoy what I'm doing, which makes me more passionate about web development and coding. I am always ready to do challenging tasks whether it is about creating a custom CMS from scratch or customizing an existing system.\",\"sameAs\":[\"https:\/\/codehim.com\"],\"url\":\"https:\/\/codehim.com\/author\/asif-mughal\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"JavaScript Random Password Generator &#8212; CodeHim","description":"Here is a well-developed JavaScript code to create random password generator tool for your signup forms. It generates strong passwords.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/codehim.com\/text-input\/javascript-random-password-generator\/","og_locale":"en_US","og_type":"article","og_title":"JavaScript Random Password Generator &#8212; CodeHim","og_description":"Here is a well-developed JavaScript code to create random password generator tool for your signup forms. It generates strong passwords.","og_url":"https:\/\/codehim.com\/text-input\/javascript-random-password-generator\/","og_site_name":"CodeHim","article_publisher":"https:\/\/www.facebook.com\/codehimofficial","article_published_time":"2024-01-11T16:40:00+00:00","article_modified_time":"2024-01-22T09:45:17+00:00","og_image":[{"width":1280,"height":960,"url":"https:\/\/codehim.com\/wp-content\/uploads\/2021\/09\/javascript-random-password-generator.png","type":"image\/png"}],"author":"Asif Mughal","twitter_card":"summary_large_image","twitter_creator":"@CodeHimOfficial","twitter_site":"@CodeHimOfficial","twitter_misc":{"Written by":"Asif Mughal","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/codehim.com\/text-input\/javascript-random-password-generator\/#article","isPartOf":{"@id":"https:\/\/codehim.com\/text-input\/javascript-random-password-generator\/"},"author":{"name":"Asif Mughal","@id":"https:\/\/codehim.com\/#\/schema\/person\/cc48f1dbe072a89a62a98171b7db43ed"},"headline":"JavaScript Random Password Generator","datePublished":"2024-01-11T16:40:00+00:00","dateModified":"2024-01-22T09:45:17+00:00","mainEntityOfPage":{"@id":"https:\/\/codehim.com\/text-input\/javascript-random-password-generator\/"},"wordCount":230,"commentCount":0,"publisher":{"@id":"https:\/\/codehim.com\/#organization"},"image":{"@id":"https:\/\/codehim.com\/text-input\/javascript-random-password-generator\/#primaryimage"},"thumbnailUrl":"https:\/\/codehim.com\/wp-content\/uploads\/2021\/09\/javascript-random-password-generator.png","articleSection":["Text &amp; Input","Vanilla JavaScript"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/codehim.com\/text-input\/javascript-random-password-generator\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/codehim.com\/text-input\/javascript-random-password-generator\/","url":"https:\/\/codehim.com\/text-input\/javascript-random-password-generator\/","name":"JavaScript Random Password Generator &#8212; CodeHim","isPartOf":{"@id":"https:\/\/codehim.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/codehim.com\/text-input\/javascript-random-password-generator\/#primaryimage"},"image":{"@id":"https:\/\/codehim.com\/text-input\/javascript-random-password-generator\/#primaryimage"},"thumbnailUrl":"https:\/\/codehim.com\/wp-content\/uploads\/2021\/09\/javascript-random-password-generator.png","datePublished":"2024-01-11T16:40:00+00:00","dateModified":"2024-01-22T09:45:17+00:00","description":"Here is a well-developed JavaScript code to create random password generator tool for your signup forms. It generates strong passwords.","breadcrumb":{"@id":"https:\/\/codehim.com\/text-input\/javascript-random-password-generator\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/codehim.com\/text-input\/javascript-random-password-generator\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/codehim.com\/text-input\/javascript-random-password-generator\/#primaryimage","url":"https:\/\/codehim.com\/wp-content\/uploads\/2021\/09\/javascript-random-password-generator.png","contentUrl":"https:\/\/codehim.com\/wp-content\/uploads\/2021\/09\/javascript-random-password-generator.png","width":1280,"height":960,"caption":"JavaScript Random Password Generator"},{"@type":"BreadcrumbList","@id":"https:\/\/codehim.com\/text-input\/javascript-random-password-generator\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/codehim.com\/"},{"@type":"ListItem","position":2,"name":"Text &amp; Input","item":"https:\/\/codehim.com\/category\/text-input\/"},{"@type":"ListItem","position":3,"name":"JavaScript Random Password Generator"}]},{"@type":"WebSite","@id":"https:\/\/codehim.com\/#website","url":"https:\/\/codehim.com\/","name":"CodeHim","description":"Web Design Code Snippets","publisher":{"@id":"https:\/\/codehim.com\/#organization"},"alternateName":"Web Design Codes","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/codehim.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/codehim.com\/#organization","name":"CodeHim - Web Design Code & Scripts","url":"https:\/\/codehim.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/codehim.com\/#\/schema\/logo\/image\/","url":"http:\/\/codehim.com\/wp-content\/uploads\/2023\/06\/Codehim-short-logo.jpg","contentUrl":"http:\/\/codehim.com\/wp-content\/uploads\/2023\/06\/Codehim-short-logo.jpg","width":280,"height":280,"caption":"CodeHim - Web Design Code & Scripts"},"image":{"@id":"https:\/\/codehim.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/codehimofficial","https:\/\/x.com\/CodeHimOfficial","https:\/\/www.instagram.com\/codehim\/","https:\/\/www.linkedin.com\/company\/codehim","https:\/\/co.pinterest.com\/codehim\/","https:\/\/www.youtube.com\/@codehim"]},{"@type":"Person","@id":"https:\/\/codehim.com\/#\/schema\/person\/cc48f1dbe072a89a62a98171b7db43ed","name":"Asif Mughal","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/codehim.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/b25bfcd7d4e341c2c6f785a88d8ad2a4?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/b25bfcd7d4e341c2c6f785a88d8ad2a4?s=96&d=mm&r=g","caption":"Asif Mughal"},"description":"I code and create web elements for amazing people around the world. I like work with new people. New people new Experiences. I truly enjoy what I'm doing, which makes me more passionate about web development and coding. I am always ready to do challenging tasks whether it is about creating a custom CMS from scratch or customizing an existing system.","sameAs":["https:\/\/codehim.com"],"url":"https:\/\/codehim.com\/author\/asif-mughal\/"}]}},"views":5149,"_links":{"self":[{"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/posts\/5595","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/comments?post=5595"}],"version-history":[{"count":0,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/posts\/5595\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/media\/5598"}],"wp:attachment":[{"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/media?parent=5595"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/categories?post=5595"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/tags?post=5595"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}