diff --git a/dokuwiki/templates/local.protected.php.j2 b/dokuwiki/templates/local.protected.php.j2
index 20067a6c1aa3a9418d9c20ef06d2d87bfa3abc41..8f7b0bfba9a3c3b093bcd7429da9465c018861f7 100644
--- a/dokuwiki/templates/local.protected.php.j2
+++ b/dokuwiki/templates/local.protected.php.j2
@@ -13,9 +13,11 @@ $conf['plugin']['authad']['update_mail'] = 0;
 $conf['disableactions'] = 'register,profile_delete,resendpwd';
 $conf['superuser'] = '{{ item.ad_superuser }}';
 $conf['manager'] = '{{ item.ad_manager }}';
+$conf['passcrypt'] = 'ssha';
+{% else %}
+$conf['passcrypt'] = 'bcrypt';
 {% endif %}
 
-$conf['passcrypt'] = 'ssha';
 $conf['mailfrom'] = '{{ item.mail }}';
 $conf['htmlmail'] = 0;
 $conf['userewrite'] = '1';