{"id":2361,"date":"2019-01-02T12:21:20","date_gmt":"2019-01-02T12:21:20","guid":{"rendered":"http:\/\/www.softaculous.com\/blog\/?post_type=docs&#038;p=2361"},"modified":"2021-10-30T07:51:21","modified_gmt":"2021-10-30T07:51:21","slug":"encrypt-db-password","status":"publish","type":"docs","link":"https:\/\/www.softaculous.com\/blog\/docs\/admin\/softaculous-management\/encrypt-db-password\/","title":{"rendered":"Encrypt DB Password"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><strong>How to store Database Passwords in encrypted format<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This tutorial will show you how to store Database Passwords in encrypted format in Softaculous.<\/p>\n\n\n\n<p class=\"alert alert-info wp-block-paragraph\"><strong>Note&nbsp;:<\/strong>&nbsp;The password encryption uses a common salt for all password encryption and is stored in the universal.php file on your server. The salt is required to decrypt the password and if the salt is changed manually\/removed from universal.php all the database password decryption for all installations on the server will fail.<\/p>\n\n\n\n<p class=\"alert alert-info wp-block-paragraph\"><strong>Note&nbsp;:<\/strong>&nbsp;This setting will not update the database passwords of the existing installations and will be applied only to the installations made after enabling this setting. The database passwords for existing installation will continue to work without encryption and will not break your installation\/upgrades.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><br>Please do not delete the universal.php file or update the salt manually. universal.php is located at&nbsp;:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted bash hljs\">\/path\/to\/softaculous\/enduser\/universal.php\n<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Login to Control Panel<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Go to your Admin panel (e.g. WHM&#8217;s url will be&nbsp;<a href=\"https:\/\/domain.com:2087\/\">https:\/\/domain.com:2087<\/a>) and login with your root details.&nbsp;<br>Navigate through WHM -&gt; Plugins -&gt; Softaculous Admin panel -&gt; Settings<br>This will lead you to the Settings page in Softaculous Admin Panel.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Enable the Setting<\/h3>\n\n\n\n<ul class=\"wp-block-list\"><li>Search for the&nbsp;<strong>Store Database Password in encrypted format<\/strong>&nbsp;setting.&nbsp;<br><\/li><li>Select the checkbox next to the above setting.<\/li><li>Click on the &#8220;Edit Settings&#8221; button.<\/li><li>That&#8217;s it! All the database passwords generated from now will be stored in encrypted format.<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/www.softaculous.com\/blog\/wp-content\/uploads\/2021\/10\/encrypt_db_password_1.png\"><img loading=\"lazy\" decoding=\"async\" width=\"455\" height=\"1024\" src=\"https:\/\/www.softaculous.com\/blog\/wp-content\/uploads\/2021\/10\/encrypt_db_password_1-455x1024.png\" alt=\"\" class=\"wp-image-5082\" srcset=\"https:\/\/www.softaculous.com\/blog\/wp-content\/uploads\/2021\/10\/encrypt_db_password_1-455x1024.png 455w, https:\/\/www.softaculous.com\/blog\/wp-content\/uploads\/2021\/10\/encrypt_db_password_1-133x300.png 133w, https:\/\/www.softaculous.com\/blog\/wp-content\/uploads\/2021\/10\/encrypt_db_password_1.png 537w\" sizes=\"auto, (max-width: 455px) 100vw, 455px\" \/><\/a><\/figure>\n","protected":false},"featured_media":0,"parent":1671,"menu_order":14,"comment_status":"closed","ping_status":"closed","template":"","docs_category":[],"class_list":["post-2361","docs","type-docs","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.softaculous.com\/blog\/wp-json\/wp\/v2\/docs\/2361","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.softaculous.com\/blog\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/www.softaculous.com\/blog\/wp-json\/wp\/v2\/types\/docs"}],"replies":[{"embeddable":true,"href":"https:\/\/www.softaculous.com\/blog\/wp-json\/wp\/v2\/comments?post=2361"}],"version-history":[{"count":3,"href":"https:\/\/www.softaculous.com\/blog\/wp-json\/wp\/v2\/docs\/2361\/revisions"}],"predecessor-version":[{"id":5083,"href":"https:\/\/www.softaculous.com\/blog\/wp-json\/wp\/v2\/docs\/2361\/revisions\/5083"}],"up":[{"embeddable":true,"href":"https:\/\/www.softaculous.com\/blog\/wp-json\/wp\/v2\/docs\/1671"}],"wp:attachment":[{"href":"https:\/\/www.softaculous.com\/blog\/wp-json\/wp\/v2\/media?parent=2361"}],"wp:term":[{"taxonomy":"docs_category","embeddable":true,"href":"https:\/\/www.softaculous.com\/blog\/wp-json\/wp\/v2\/docs_category?post=2361"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}