diff --git a/htdocs/admin/security.php b/htdocs/admin/security.php
index c28c4deaa56..b9c71993213 100644
--- a/htdocs/admin/security.php
+++ b/htdocs/admin/security.php
@@ -131,7 +131,7 @@ if ($action == 'activate_encryptdbpassconf') {
header("Location: security.php");
exit;
} else {
- setEventMessages($langs->trans('InstrucToEncodePass', dol_encode($dolibarr_main_db_pass)), null, 'warnings');
+ setEventMessages($langs->trans('InstrucToEncodePass', dolEncrypt($dolibarr_main_db_pass)), null, 'warnings');
}
} elseif ($action == 'disable_encryptdbpassconf') {
$result = encodedecode_dbpassconf(0);
diff --git a/htdocs/langs/en_US/admin.lang b/htdocs/langs/en_US/admin.lang
index b5df1fb9034..7288d77245f 100644
--- a/htdocs/langs/en_US/admin.lang
+++ b/htdocs/langs/en_US/admin.lang
@@ -255,7 +255,7 @@ Security=Security
Passwords=Passwords
DoNotStoreClearPassword=Encrypt passwords stored in database.
MainDbPasswordFileConfEncrypted=Obfuscate the database password stored in conf.php. It is recommended to activate this option.
-InstrucToEncodePass=To have password encoded into the conf.php file, replace the line
$dolibarr_main_db_pass="...";
by
$dolibarr_main_db_pass="crypted:%s";
+InstrucToEncodePass=To have password encoded into the conf.php file, replace the line
$dolibarr_main_db_pass="...";
by
$dolibarr_main_db_pass="%s";
InstrucToClearPass=To have password decoded (clear) into the conf.php file, replace the line
$dolibarr_main_db_pass="crypted:...";
by
$dolibarr_main_db_pass="%s";
ProtectAndEncryptPdfFiles=Protect generated PDF files. This is NOT recommended as it breaks bulk PDF generation.
ProtectAndEncryptPdfFilesDesc=Protection of a PDF document keeps it available to read and print with any PDF browser. However, editing and copying is not possible anymore. Note that using this feature makes building of a global merged PDFs not working.