{"id":1127,"date":"2021-07-20T07:16:41","date_gmt":"2021-07-20T12:16:41","guid":{"rendered":"https:\/\/www.knownhost.com\/kb\/?p=1127"},"modified":"2026-03-23T06:44:30","modified_gmt":"2026-03-23T11:44:30","slug":"how-can-i-generate-a-secure-random-password","status":"publish","type":"post","link":"https:\/\/www.knownhost.com\/kb\/how-can-i-generate-a-secure-random-password\/","title":{"rendered":"How can I generate a secure random password?"},"content":{"rendered":"<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 ez-toc-wrap-right counter-hierarchy ez-toc-counter ez-toc-custom ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #212121;color:#212121\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #212121;color:#212121\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 eztoc-toggle-hide-by-default' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.knownhost.com\/kb\/how-can-i-generate-a-secure-random-password\/#characteristics_of_secure_passwords\" >Characteristics of Secure Passwords<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.knownhost.com\/kb\/how-can-i-generate-a-secure-random-password\/#storing_the_passwords\" >Storing the Passwords<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.knownhost.com\/kb\/how-can-i-generate-a-secure-random-password\/#generating_the_passwords\" >Generating the Passwords<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/www.knownhost.com\/kb\/how-can-i-generate-a-secure-random-password\/#generate_one_50-character_alphanumeric_password\" >Generate one 50-character alphanumeric password<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/www.knownhost.com\/kb\/how-can-i-generate-a-secure-random-password\/#generate_one_23-character_alphanumeric_password\" >Generate one 23-character alphanumeric password<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/www.knownhost.com\/kb\/how-can-i-generate-a-secure-random-password\/#generate_one_16-character_password_permitting_specific_special_characters\" >Generate one 16-character password, permitting specific special characters<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/www.knownhost.com\/kb\/how-can-i-generate-a-secure-random-password\/#generate_five_16-character_passwords_permitting_specific_special_characters\" >Generate five 16-character passwords, permitting specific special characters<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/www.knownhost.com\/kb\/how-can-i-generate-a-secure-random-password\/#generate_five_23-character_alphanumeric_passwords\" >Generate five 23-character alphanumeric passwords<\/a><\/li><\/ul><\/li><\/ul><\/nav><\/div>\n\n<p>It is important to make sure each and every password used for any type of account is strong. Before we get into how to generate these passwords, let&#8217;s go over some of the characteristics of strong passwords.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"characteristics_of_secure_passwords\"><\/span>Characteristics of Secure Passwords<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Password security is one of the key parts of security of any application, whether it&#8217;s a website, email address, or any other type of account in the server (or on any computer, device, or network).&nbsp;It is very important that each and every password you use anywhere have all three of these features:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Long<\/strong>: It is very important that the password is long enough that someone attempting a bruteforce attack would need a very long time to guess it, even if they are guessing very quickly.<\/li>\n\n\n\n<li><strong>Randomized<\/strong>: It is very important not to use any dictionary words, phrases, or strings, that someone attempting a dictionary-based attack might try before starting to bruteforce their way through all possible choices. Since potential attackers are constantly updating their dictionaries with newly-common passwords, the best way to avoid a password eventually being in such a dictionary is to generate it completely randomized.<\/li>\n\n\n\n<li><strong>Unique<\/strong>: It is very important that passwords are not reused ever. Every time you reset a password, or make a password for a new account, it should be different from any other password you have used. This way, if one of your passwords\u00a0<em>does<\/em>\u00a0become compromised, the attackers will not be able to get into your other accounts with the same password.<\/li>\n<\/ul>\n\n\n\n<p>The easiest way to fulfill all of these, is to regenerate a new password randomly, each time you create or reset a password of any kind.<\/p>\n\n\n\n<p>Adding &#8220;special characters&#8221; (such as&nbsp;<code>!@#$%^&amp;*()_+=-{}|\\][:\"';&lt;&gt;?\/.,<\/code>)&nbsp;can help make a password &#8220;effectively longer&#8221; without adding more characters. For this reason some applications will require you to use at least one of this type of character. However, applications differ on&nbsp;<em>which<\/em>&nbsp;special characters they allow. Additionally, if a password is long&nbsp;<em>enough<\/em>, then an alphanumeric password can still be as secure as a shorter password that has special characters. For this reason, it is probably easiest to generate a longer password with alphanumeric (ie, numbers and upper and lower case letters)&nbsp;characters, and then add one or more special characters afterward if required (or if the application only allows short passwords).<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"storing_the_passwords\"><\/span>Storing the Passwords<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>It is also important when choosing a password, to consider how the password will be stored. You need to make sure you will have access to the password, but no one else will. &#8220;Ideally&#8221; you would memorize the password and never store it anywhere outside of your head, however, due to the faliability of human memory, this is not reliable for more than a small number of passwords, or for passwords that are not short. And a short, reused, or non-random password is going to be very easy for potential attackers to guess, which renders the password useless. So it is almost inevitable that the password will have to be stored somewhere.<\/p>\n\n\n\n<p>It is&nbsp;<em><strong>not<\/strong><\/em>&nbsp;a good idea to store the password in a plain-text or weakly-obfuscated format in your computer, since it is very common for computer infections to find passwords in this way, and send them to attackers to use to log into your various accounts. For example, the web browser&#8217;s password storage is one of the first places these infections will look, so it is especially not recommended to let the web browser itself store the passwords. Nor should you use a plaintext file on your desktop or in your documents folder, for the same reason. If you do need to store the passwords in your computer, it is recommended to use a program like <a href=\"https:\/\/www.keepassx.org\/\">KeePassX<\/a>&nbsp;or a service like <a href=\"https:\/\/lastpass.com\/\">LastPass<\/a>.<\/p>\n\n\n\n<p>If you do not have a password manager like these, or if the password is for something like your workstation where you have to log in before being able to even access the password manager, the next best option would be to write the passwords down. It is very important not to lose this paper. It is also strongly recommended to obfuscate the passwords, as well as which account each password is for. Make sure that when looking at the page, you will know what the passwords are and what they go to, but that someone else looking at the page will know neither.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"generating_the_passwords\"><\/span>Generating the Passwords<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>If you do have a password manager like KeePassX or like LastPass, you can use the built-in password generator there, but it is also useful to know a few ways of generating strong passwords without use of these, in case you need to make up a password when you don&#8217;t have these available to you. Here are some useful commands for generating long randomized passwords. If your computer uses Linux, Mac, or another Unix-like operating system, or if you are a Windows user using cygwin (or, if you are using a newer Windows version that has added support for these commands without needing something like cygwin),&nbsp;you should be able to use these commands in your computer&#8217;s commandline. If this is not possible, or if you prefer to generate the passwords from within your server, you can log in via SSH and run the commands there<a href=\"https:\/\/www.gnu.org\/software\/bash\/\"> bash<\/a>. If you are using something else, the syntax or commands for these tasks may vary.))<\/p>\n\n\n<div class=\"kb-shortcode kb-shortcode_warning\">\n                    <div class=\"kb-shortcode-icon\">\n                        <i class=\"fa fa-exclamation-triangle fa-2x\"><\/i>\n                    <\/div>\n                    <div class=\"kb-shortcode-content_warning\">These commands show example output of what the output of the command might look like. Do NOT use these specific passwords! Run the desired command yourself to generate your own.<\/div>\n                <\/div>\n\n\n\n<p>Here are some commands to get you started. To some extent, pieces of these can be mixed and matched to get different types of results. For advanced users, you can learn more about each of these commands by typing\u00a0<code>man urandom<\/code>,\u00a0<code>man head<\/code>,\u00a0<code>man base64<\/code>,\u00a0<code>man tr<\/code>,\u00a0<code>man cut<\/code>,\u00a0<code>man cat<\/code>,\u00a0<code>man echo<\/code>, and\/or\u00a0<code>man seq<\/code>. More about <a href=\"http:\/\/tldp.org\/HOWTO\/Bash-Prog-Intro-HOWTO-7.html\">bash for loops can be found\u00a0here<\/a>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"generate_one_50-character_alphanumeric_password\"><\/span>Generate one 50-character alphanumeric password<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>  $ head -c 50 \/dev\/urandom | base64 | tr -d '\/+=' | cut -c1-50\n  VIUmBnM5O6e9ULzrQIUbeBNxtifV3FnvxXguRNWUEkg7RLyj2O<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"generate_one_23-character_alphanumeric_password\"><\/span>Generate one 23-character alphanumeric password<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>  $ head -c 23 \/dev\/urandom | base64 | tr -d '\/+=' | cut -c1-23\n  hoof1VnzfCkvyjRQPlRcRzr<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"generate_one_16-character_password_permitting_specific_special_characters\"><\/span>Generate one 16-character password, permitting specific special characters<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Permitting characters&nbsp;<code>!@#$%^<\/code>:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>  $ cat \/dev\/urandom | tr -dc '&#091;:alnum:]!@#$%^' | head -c 16; echo \"\"\n  67Rxzg0oCN6S6Qk@<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"generate_five_16-character_passwords_permitting_specific_special_characters\"><\/span>Generate five 16-character passwords, permitting specific special characters<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Permitting characters&nbsp;<code>$%^&amp;*<\/code>:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>  $ for each in $(seq 5); do cat \/dev\/urandom | tr -dc '&#091;:alnum:]$%^&amp;*' | head -c 16; echo \"\"; done\n  hVEa$sryiMfaJYEN\n  LqB7zjdPysdx43%p\n  Rf%9BkCuPUs1pLCH\n  efUodde*Msvgh0LR\n  xiQYFHE5HyOZPtzi<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"generate_five_23-character_alphanumeric_passwords\"><\/span>Generate five 23-character alphanumeric passwords<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>  $ for each in $(seq 5); do head -c 23 \/dev\/urandom | base64 | tr -d '\/+=' | cut -c1-23; done\n  D6vx2gjJrKLdmA3QpON8IvP\n  Cs41lyWMLsFQrmyTR0qLmnD\n  MVjASrpGdcQhH216JoCFxLf\n  ICaS1MwyWBFetQEKafJmrt2\n  jiKtKJqDEmZAiBtm667p83q<\/code><\/pre>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>It is important to make sure each and every password used for any type of account is strong. Before we get into how to generate these passwords, let&#8217;s go over some of the characteristics of strong passwords. Characteristics of Secure Passwords Password security is one of the key parts of security of any application, whether [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[109,128,82,227,123,228,229],"class_list":["post-1127","post","type-post","status-publish","format-standard","hentry","category-getting-started","tag-cpanel","tag-directadmin","tag-getting-started","tag-knownhost","tag-linux","tag-passwords","tag-secure"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How can I generate a secure random password? - KnownHost<\/title>\n<meta name=\"description\" content=\"An article about how to generate a secure password for your server so you are never compromised because of a weak password again.\" \/>\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.knownhost.com\/kb\/how-can-i-generate-a-secure-random-password\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How can I generate a secure random password? - KnownHost\" \/>\n<meta property=\"og:description\" content=\"An article about how to generate a secure password for your server so you are never compromised because of a weak password again.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.knownhost.com\/kb\/how-can-i-generate-a-secure-random-password\/\" \/>\n<meta property=\"og:site_name\" content=\"KnownHost\" \/>\n<meta property=\"article:published_time\" content=\"2021-07-20T12:16:41+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-03-23T11:44:30+00:00\" \/>\n<meta name=\"author\" content=\"Jonathan K. W.\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Jonathan K. W.\" \/>\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:\\\/\\\/www.knownhost.com\\\/kb\\\/how-can-i-generate-a-secure-random-password\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/how-can-i-generate-a-secure-random-password\\\/\"},\"author\":{\"name\":\"Jonathan K. W.\",\"@id\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/#\\\/schema\\\/person\\\/3db6e20d1f33519cd68fe0ba1230a48b\"},\"headline\":\"How can I generate a secure random password?\",\"datePublished\":\"2021-07-20T12:16:41+00:00\",\"dateModified\":\"2026-03-23T11:44:30+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/how-can-i-generate-a-secure-random-password\\\/\"},\"wordCount\":1032,\"keywords\":[\"cpanel\",\"directadmin\",\"getting-started\",\"knownhost\",\"linux\",\"passwords\",\"secure\"],\"articleSection\":[\"Getting Started\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/how-can-i-generate-a-secure-random-password\\\/\",\"url\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/how-can-i-generate-a-secure-random-password\\\/\",\"name\":\"How can I generate a secure random password? - KnownHost\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/#website\"},\"datePublished\":\"2021-07-20T12:16:41+00:00\",\"dateModified\":\"2026-03-23T11:44:30+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/#\\\/schema\\\/person\\\/3db6e20d1f33519cd68fe0ba1230a48b\"},\"description\":\"An article about how to generate a secure password for your server so you are never compromised because of a weak password again.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/how-can-i-generate-a-secure-random-password\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/how-can-i-generate-a-secure-random-password\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/how-can-i-generate-a-secure-random-password\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How can I generate a secure random password?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/#website\",\"url\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/\",\"name\":\"KnownHost\",\"description\":\"KnownHost provides a comprehensive webhosting knowledge base to help answer many of your common webhosting and linux questions.\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/#\\\/schema\\\/person\\\/3db6e20d1f33519cd68fe0ba1230a48b\",\"name\":\"Jonathan K. W.\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/f432b99e6651fe8d1deb57a285bd84e806f1c9ae8b4c6c585d7e3a0b33789ad9?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/f432b99e6651fe8d1deb57a285bd84e806f1c9ae8b4c6c585d7e3a0b33789ad9?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/f432b99e6651fe8d1deb57a285bd84e806f1c9ae8b4c6c585d7e3a0b33789ad9?s=96&d=mm&r=g\",\"caption\":\"Jonathan K. W.\"},\"sameAs\":[\"https:\\\/\\\/www.knownhost.com\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How can I generate a secure random password? - KnownHost","description":"An article about how to generate a secure password for your server so you are never compromised because of a weak password again.","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.knownhost.com\/kb\/how-can-i-generate-a-secure-random-password\/","og_locale":"en_US","og_type":"article","og_title":"How can I generate a secure random password? - KnownHost","og_description":"An article about how to generate a secure password for your server so you are never compromised because of a weak password again.","og_url":"https:\/\/www.knownhost.com\/kb\/how-can-i-generate-a-secure-random-password\/","og_site_name":"KnownHost","article_published_time":"2021-07-20T12:16:41+00:00","article_modified_time":"2026-03-23T11:44:30+00:00","author":"Jonathan K. W.","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Jonathan K. W.","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.knownhost.com\/kb\/how-can-i-generate-a-secure-random-password\/#article","isPartOf":{"@id":"https:\/\/www.knownhost.com\/kb\/how-can-i-generate-a-secure-random-password\/"},"author":{"name":"Jonathan K. W.","@id":"https:\/\/www.knownhost.com\/kb\/#\/schema\/person\/3db6e20d1f33519cd68fe0ba1230a48b"},"headline":"How can I generate a secure random password?","datePublished":"2021-07-20T12:16:41+00:00","dateModified":"2026-03-23T11:44:30+00:00","mainEntityOfPage":{"@id":"https:\/\/www.knownhost.com\/kb\/how-can-i-generate-a-secure-random-password\/"},"wordCount":1032,"keywords":["cpanel","directadmin","getting-started","knownhost","linux","passwords","secure"],"articleSection":["Getting Started"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.knownhost.com\/kb\/how-can-i-generate-a-secure-random-password\/","url":"https:\/\/www.knownhost.com\/kb\/how-can-i-generate-a-secure-random-password\/","name":"How can I generate a secure random password? - KnownHost","isPartOf":{"@id":"https:\/\/www.knownhost.com\/kb\/#website"},"datePublished":"2021-07-20T12:16:41+00:00","dateModified":"2026-03-23T11:44:30+00:00","author":{"@id":"https:\/\/www.knownhost.com\/kb\/#\/schema\/person\/3db6e20d1f33519cd68fe0ba1230a48b"},"description":"An article about how to generate a secure password for your server so you are never compromised because of a weak password again.","breadcrumb":{"@id":"https:\/\/www.knownhost.com\/kb\/how-can-i-generate-a-secure-random-password\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.knownhost.com\/kb\/how-can-i-generate-a-secure-random-password\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.knownhost.com\/kb\/how-can-i-generate-a-secure-random-password\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.knownhost.com\/kb\/"},{"@type":"ListItem","position":2,"name":"How can I generate a secure random password?"}]},{"@type":"WebSite","@id":"https:\/\/www.knownhost.com\/kb\/#website","url":"https:\/\/www.knownhost.com\/kb\/","name":"KnownHost","description":"KnownHost provides a comprehensive webhosting knowledge base to help answer many of your common webhosting and linux questions.","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.knownhost.com\/kb\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.knownhost.com\/kb\/#\/schema\/person\/3db6e20d1f33519cd68fe0ba1230a48b","name":"Jonathan K. W.","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/f432b99e6651fe8d1deb57a285bd84e806f1c9ae8b4c6c585d7e3a0b33789ad9?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/f432b99e6651fe8d1deb57a285bd84e806f1c9ae8b4c6c585d7e3a0b33789ad9?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/f432b99e6651fe8d1deb57a285bd84e806f1c9ae8b4c6c585d7e3a0b33789ad9?s=96&d=mm&r=g","caption":"Jonathan K. W."},"sameAs":["https:\/\/www.knownhost.com"]}]}},"_links":{"self":[{"href":"https:\/\/www.knownhost.com\/kb\/wp-json\/wp\/v2\/posts\/1127","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.knownhost.com\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.knownhost.com\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.knownhost.com\/kb\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.knownhost.com\/kb\/wp-json\/wp\/v2\/comments?post=1127"}],"version-history":[{"count":1,"href":"https:\/\/www.knownhost.com\/kb\/wp-json\/wp\/v2\/posts\/1127\/revisions"}],"predecessor-version":[{"id":8089,"href":"https:\/\/www.knownhost.com\/kb\/wp-json\/wp\/v2\/posts\/1127\/revisions\/8089"}],"wp:attachment":[{"href":"https:\/\/www.knownhost.com\/kb\/wp-json\/wp\/v2\/media?parent=1127"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.knownhost.com\/kb\/wp-json\/wp\/v2\/categories?post=1127"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.knownhost.com\/kb\/wp-json\/wp\/v2\/tags?post=1127"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}