{"id":2768,"date":"2025-04-18T05:26:03","date_gmt":"2025-04-18T05:26:03","guid":{"rendered":"https:\/\/www.itechmagazine.com\/?page_id=2768"},"modified":"2025-10-17T22:57:50","modified_gmt":"2025-10-17T22:57:50","slug":"random-password-generator","status":"publish","type":"page","link":"https:\/\/www.itechmagazine.com\/sv\/random-password-generator\/","title":{"rendered":"Random Password Generator"},"content":{"rendered":"\n<style>\n    * {\n        margin: 0;\n        padding: 0;\n        box-sizing: border-box;\n    }\n\n    .password-generator-container {\n        max-width: 500px;\n        width: 90%;\n        background-color: #ffffff;\n        padding: 2rem;\n        border-radius: 12px;\n        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);\n        text-align: center;\n        margin: 0 auto;\n    }\n\n    .password-generator-container h1 {\n        color: #1f2937;\n        font-size: 1.75rem;\n        margin-bottom: 1.5rem;\n    }\n\n    .input-group {\n        margin-bottom: 1.25rem;\n    }\n\n    .password-input {\n        width: 100%;\n        padding: 0.75rem;\n        border: 1px solid #d1d5db;\n        border-radius: 8px;\n        font-family: monospace;\n        font-size: 1rem;\n        text-align: center;\n        background-color: #f9fafb;\n        color: #1f2937;\n    }\n\n    .password-input:focus {\n        outline: none;\n        border-color: #3b82f6;\n        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);\n    }\n\n    .length-group {\n        display: flex;\n        align-items: center;\n        justify-content: center;\n        gap: 0.5rem;\n    }\n\n    .length-input {\n        width: 60px;\n        padding: 0.5rem;\n        border: 1px solid #d1d5db;\n        border-radius: 8px;\n        text-align: center;\n        font-size: 1rem;\n    }\n\n    .length-input:focus {\n        outline: none;\n        border-color: #3b82f6;\n        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);\n    }\n\n    .checkbox-group {\n        display: flex;\n        align-items: center;\n        justify-content: center;\n        gap: 0.5rem;\n        margin-bottom: 1.5rem;\n    }\n\n    .checkbox {\n        width: 1.25rem;\n        height: 1.25rem;\n        cursor: pointer;\n    }\n\n    .checkbox:focus {\n        outline: none;\n        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);\n    }\n\n    .checkbox-label {\n        color: #374151;\n        font-size: 1rem;\n        cursor: pointer;\n        user-select: none;\n    }\n\n    .button-group {\n        display: flex;\n        justify-content: center;\n        gap: 1rem;\n    }\n\n    .btn {\n        padding: 0.75rem 1.5rem;\n        border: none;\n        border-radius: 8px;\n        font-size: 1rem;\n        cursor: pointer;\n        transition: background-color 0.2s ease-in-out, transform 0.2s ease-in-out;\n    }\n\n    .generate-btn {\n        background-color: #3b82f6;\n        color: #ffffff;\n    }\n\n    .generate-btn:hover {\n        background-color: #2563eb;\n        transform: translateY(-2px);\n    }\n\n    .copy-btn {\n        background-color: #6b7280;\n        color: #ffffff;\n    }\n\n    .copy-btn:hover {\n        background-color: #4b5563;\n        transform: translateY(-2px);\n    }\n\n    .btn:focus {\n        outline: none;\n        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);\n    }\n\n    .notification {\n        position: fixed;\n        bottom: 1rem;\n        right: 1rem;\n        background-color: #10b981;\n        color: #ffffff;\n        padding: 0.75rem 1.5rem;\n        border-radius: 8px;\n        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);\n        opacity: 0;\n        animation: fadeInOut 3s ease-in-out;\n    }\n\n    @keyframes fadeInOut {\n        0% { opacity: 0; transform: translateY(20px); }\n        10% { opacity: 1; transform: translateY(0); }\n        90% { opacity: 1; transform: translateY(0); }\n        100% { opacity: 0; transform: translateY(20px); }\n    }\n\n    @media (max-width: 480px) {\n        .password-generator-container {\n            padding: 1.5rem;\n        }\n\n        .password-generator-container h1 {\n            font-size: 1.5rem;\n        }\n\n        .btn {\n            padding: 0.5rem 1rem;\n            font-size: 0.9rem;\n        }\n    }\n<\/style>\n\n<div class=\"password-generator-container\">\n    <h3>Random Password Generator with one click<\/h3>\n    <div class=\"input-group\">\n        <input \n            type=\"text\" \n            id=\"password\" \n            class=\"password-input\" \n            readonly \n            aria-label=\"Generated password\"\n        >\n    <\/div>\n    <div class=\"length-group\">\n        <label for=\"length\" class=\"checkbox-label\">Password Length:<\/label>\n        <input \n            type=\"number\" \n            id=\"length\" \n            value=\"12\" \n            min=\"6\" \n            max=\"30\" \n            class=\"length-input\" \n            aria-label=\"Password length\"\n        >\n    <\/div>\n    <div class=\"checkbox-group\">\n        <input \n            type=\"checkbox\" \n            id=\"includeSpecial\" \n            class=\"checkbox\"\n        >\n        <label for=\"includeSpecial\" class=\"checkbox-label\">Include Special Characters<\/label>\n    <\/div>\n    <div class=\"button-group\">\n        <button \n            onclick=\"generatePassword()\" \n            class=\"btn generate-btn\"\n        >\n            Generate Password\n        <\/button>\n        <button \n            onclick=\"copyPassword()\" \n            class=\"btn copy-btn\"\n        >\n            Copy\n        <\/button>\n    <\/div>\n<\/div>\n\n<script>\n    function generatePassword() {\n        const length = parseInt(document.getElementById('length').value);\n        const includeSpecial = document.getElementById('includeSpecial').checked;\n        const charset = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';\n        const specialChars = '!@#$%^&*()_+{}[]';\n        const finalCharset = includeSpecial ? charset + specialChars : charset;\n        \n        let password = '';\n        for (let i = 0; i < length; i++) {\n            const randomIndex = Math.floor(Math.random() * finalCharset.length);\n            password += finalCharset[randomIndex];\n        }\n        \n        const passwordField = document.getElementById('password');\n        passwordField.value = password;\n    }\n\n    function copyPassword() {\n        const passwordField = document.getElementById('password');\n        passwordField.select();\n        try {\n            document.execCommand('copy');\n            showNotification('Password copied to clipboard!');\n        } catch (err) {\n            showNotification('Failed to copy password.');\n        }\n    }\n\n    function showNotification(message) {\n        const notification = document.createElement('div');\n        notification.className = 'notification';\n        notification.textContent = message;\n        document.body.appendChild(notification);\n        setTimeout(() => {\n            notification.remove();\n        }, 3000);\n    }\n\n    \/\/ Generate a password on page load\n    window.onload = generatePassword;\n<\/script>\n","protected":false},"excerpt":{"rendered":"<p>Random Password Generator with one click Password Length: Include Special Characters Generate Password Copy<\/p>","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-2768","page","type-page","status-publish"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Random Password Generator - iTech Magazine<\/title>\n<meta name=\"description\" content=\"Random Password Generator - Random Password Generator with one click Password Length: Include Special Characters Generate Password\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.itechmagazine.com\/sv\/random-password-generator\/\" \/>\n<meta property=\"og:locale\" content=\"sv_SE\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Random Password Generator - iTech Magazine\" \/>\n<meta property=\"og:description\" content=\"Random Password Generator - Random Password Generator with one click Password Length: Include Special Characters Generate Password\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.itechmagazine.com\/sv\/random-password-generator\/\" \/>\n<meta property=\"og:site_name\" content=\"iTech Magazine\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/itechmagzine\" \/>\n<meta property=\"article:modified_time\" content=\"2025-10-17T22:57:50+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.itechmagazine.com\/wp-content\/uploads\/2023\/03\/cropped-itechmagazine-favicon-1.png\" \/>\n\t<meta property=\"og:image:width\" content=\"512\" \/>\n\t<meta property=\"og:image:height\" content=\"512\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:site\" content=\"@itech_magazine\" \/>\n<meta name=\"twitter:label1\" content=\"Ber\u00e4knad l\u00e4stid\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minut\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.itechmagazine.com\\\/random-password-generator\\\/\",\"url\":\"https:\\\/\\\/www.itechmagazine.com\\\/random-password-generator\\\/\",\"name\":\"Random Password Generator - iTech Magazine\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.itechmagazine.com\\\/#website\"},\"datePublished\":\"2025-04-18T05:26:03+00:00\",\"dateModified\":\"2025-10-17T22:57:50+00:00\",\"description\":\"Random Password Generator - Random Password Generator with one click Password Length: Include Special Characters Generate Password\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.itechmagazine.com\\\/random-password-generator\\\/#breadcrumb\"},\"inLanguage\":\"sv-SE\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.itechmagazine.com\\\/random-password-generator\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.itechmagazine.com\\\/random-password-generator\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.itechmagazine.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Random Password Generator\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.itechmagazine.com\\\/#website\",\"url\":\"https:\\\/\\\/www.itechmagazine.com\\\/\",\"name\":\"iTech Magazine\",\"description\":\"Tech Trends, Business and Digital Marketing\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.itechmagazine.com\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.itechmagazine.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"sv-SE\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.itechmagazine.com\\\/#organization\",\"name\":\"itech Magazine\",\"url\":\"https:\\\/\\\/www.itechmagazine.com\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"sv-SE\",\"@id\":\"https:\\\/\\\/www.itechmagazine.com\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.itechmagazine.com\\\/wp-content\\\/uploads\\\/2023\\\/03\\\/cropped-itechmagazine-favicon-1.png\",\"contentUrl\":\"https:\\\/\\\/www.itechmagazine.com\\\/wp-content\\\/uploads\\\/2023\\\/03\\\/cropped-itechmagazine-favicon-1.png\",\"width\":512,\"height\":512,\"caption\":\"itech Magazine\"},\"image\":{\"@id\":\"https:\\\/\\\/www.itechmagazine.com\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/itechmagzine\",\"https:\\\/\\\/x.com\\\/itech_magazine\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/itechmagazine\\\/\",\"https:\\\/\\\/mastodon.online\\\/@itechmagazine\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Random Password Generator - iTech Magazine","description":"Random Password Generator - Random Password Generator with one click Password Length: Include Special Characters Generate Password","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:\/\/www.itechmagazine.com\/sv\/random-password-generator\/","og_locale":"sv_SE","og_type":"article","og_title":"Random Password Generator - iTech Magazine","og_description":"Random Password Generator - Random Password Generator with one click Password Length: Include Special Characters Generate Password","og_url":"https:\/\/www.itechmagazine.com\/sv\/random-password-generator\/","og_site_name":"iTech Magazine","article_publisher":"https:\/\/www.facebook.com\/itechmagzine","article_modified_time":"2025-10-17T22:57:50+00:00","og_image":[{"width":512,"height":512,"url":"https:\/\/www.itechmagazine.com\/wp-content\/uploads\/2023\/03\/cropped-itechmagazine-favicon-1.png","type":"image\/png"}],"twitter_card":"summary_large_image","twitter_site":"@itech_magazine","twitter_misc":{"Ber\u00e4knad l\u00e4stid":"1 minut"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.itechmagazine.com\/random-password-generator\/","url":"https:\/\/www.itechmagazine.com\/random-password-generator\/","name":"Random Password Generator - iTech Magazine","isPartOf":{"@id":"https:\/\/www.itechmagazine.com\/#website"},"datePublished":"2025-04-18T05:26:03+00:00","dateModified":"2025-10-17T22:57:50+00:00","description":"Random Password Generator - Random Password Generator with one click Password Length: Include Special Characters Generate Password","breadcrumb":{"@id":"https:\/\/www.itechmagazine.com\/random-password-generator\/#breadcrumb"},"inLanguage":"sv-SE","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.itechmagazine.com\/random-password-generator\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.itechmagazine.com\/random-password-generator\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.itechmagazine.com\/"},{"@type":"ListItem","position":2,"name":"Random Password Generator"}]},{"@type":"WebSite","@id":"https:\/\/www.itechmagazine.com\/#website","url":"https:\/\/www.itechmagazine.com\/","name":"iTech Magazine","description":"Tech Trends, Business and Digital Marketing","publisher":{"@id":"https:\/\/www.itechmagazine.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.itechmagazine.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"sv-SE"},{"@type":"Organization","@id":"https:\/\/www.itechmagazine.com\/#organization","name":"itech Magazine","url":"https:\/\/www.itechmagazine.com\/","logo":{"@type":"ImageObject","inLanguage":"sv-SE","@id":"https:\/\/www.itechmagazine.com\/#\/schema\/logo\/image\/","url":"https:\/\/www.itechmagazine.com\/wp-content\/uploads\/2023\/03\/cropped-itechmagazine-favicon-1.png","contentUrl":"https:\/\/www.itechmagazine.com\/wp-content\/uploads\/2023\/03\/cropped-itechmagazine-favicon-1.png","width":512,"height":512,"caption":"itech Magazine"},"image":{"@id":"https:\/\/www.itechmagazine.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/itechmagzine","https:\/\/x.com\/itech_magazine","https:\/\/www.linkedin.com\/company\/itechmagazine\/","https:\/\/mastodon.online\/@itechmagazine"]}]}},"_links":{"self":[{"href":"https:\/\/www.itechmagazine.com\/sv\/wp-json\/wp\/v2\/pages\/2768","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.itechmagazine.com\/sv\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.itechmagazine.com\/sv\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.itechmagazine.com\/sv\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.itechmagazine.com\/sv\/wp-json\/wp\/v2\/comments?post=2768"}],"version-history":[{"count":0,"href":"https:\/\/www.itechmagazine.com\/sv\/wp-json\/wp\/v2\/pages\/2768\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.itechmagazine.com\/sv\/wp-json\/wp\/v2\/media?parent=2768"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}