-
+
@@ -250,7 +250,7 @@
document.getElementById('btn-password').addEventListener('click', async () => {
disableAll(true); outPw.className = 'output copyable loading'; outPw.textContent = 'Generating...';
try {
- const len = document.getElementById('pw-length').value || 16;
+ const len = document.getElementById('pw-length').value || 20;
const cs = document.getElementById('pw-charset').value || 'alphanumeric';
const noAmb = document.getElementById('pw-no-ambiguous').checked;
let url = origin + '/password?length=' + len + '&charset=' + cs;
diff --git a/src/tools/password.rs b/src/tools/password.rs
index d65715e..b4a6a1d 100644
--- a/src/tools/password.rs
+++ b/src/tools/password.rs
@@ -3,7 +3,7 @@
//! Configurable length and character set (lowercase, uppercase, digits, symbols).
/// Default password length.
-pub const DEFAULT_LENGTH: usize = 16;
+pub const DEFAULT_LENGTH: usize = 20;
/// Max length per request.
pub const MAX_LENGTH: usize = 128;