chore: language entries for passphrases

This commit is contained in:
Aetherinox 2024-04-21 04:01:08 -07:00
parent cd021b5299
commit ce3fcdf1c6
No known key found for this signature in database
GPG Key ID: CB5C4C30CD0D4028
5 changed files with 64 additions and 10 deletions

View File

@ -21,7 +21,8 @@ const GeneratorPresets = {
lower: true, lower: true,
special: true, special: true,
brackets: true, brackets: true,
ambiguous: true ambiguous: true,
spaces: true
}; };
}, },
@ -54,7 +55,29 @@ const GeneratorPresets = {
lower: true, lower: true,
digits: true digits: true
}, },
{ name: 'Pin4', title: Locale.genPresetPin4, length: 4, digits: true }, {
name: 'Passphrase',
title: Locale.genPresetPassphrase,
length: 4,
digits: false,
lower: true,
spaces: true,
disabledElements: ['ambiguous', 'brackets']
},
{
name: 'UUID',
title: Locale.genPresetUUIDv4,
length: 36,
digits: true,
lower: true,
disabledElements: ['ambiguous', 'brackets', 'high', 'special', 'spaces']
},
{
name: 'Pin4',
title: Locale.genPresetPin4,
length: 4,
digits: true
},
{ {
name: 'Mac', name: 'Mac',
title: Locale.genPresetMac, title: Locale.genPresetMac,
@ -66,13 +89,25 @@ const GeneratorPresets = {
name: 'Hash128', name: 'Hash128',
title: Locale.genPresetHash128, title: Locale.genPresetHash128,
length: 32, length: 32,
include: '0123456789abcdef' lower: true,
include: '0123456789abcdef',
disabledElements: ['digits', 'special', 'brackets', 'high', 'ambiguous', 'spaces']
}, },
{ {
name: 'Hash256', name: 'Hash256',
title: Locale.genPresetHash256, title: Locale.genPresetHash256,
length: 64, length: 64,
include: '0123456789abcdef' lower: true,
include: '0123456789abcdef',
disabledElements: ['digits', 'special', 'brackets', 'high', 'ambiguous', 'spaces']
},
{
name: 'Hash512',
title: Locale.genPresetHash512,
length: 128,
lower: true,
include: '0123456789abcdef',
disabledElements: ['digits', 'special', 'brackets', 'high', 'ambiguous', 'spaces']
} }
]; ];
}, },

View File

@ -94,6 +94,10 @@
"genNewPass": "New password", "genNewPass": "New password",
"genPresetDefault": "default preset", "genPresetDefault": "default preset",
"genPresetDerived": "like old password", "genPresetDerived": "like old password",
"genPresetPronounceable": "Pronounceable",
"genPresetMed": "Medium Length",
"genPresetLong": "Long",
"genPresetPassphrase": "Passphrase",
"genPresetPronounceable": "pronounceable", "genPresetPronounceable": "pronounceable",
"genPresetMed": "medium length", "genPresetMed": "medium length",
"genPresetLong": "long", "genPresetLong": "long",
@ -101,6 +105,8 @@
"genPresetMac": "MAC address", "genPresetMac": "MAC address",
"genPresetHash128": "128-bit hash", "genPresetHash128": "128-bit hash",
"genPresetHash256": "256-bit hash", "genPresetHash256": "256-bit hash",
"genPresetHash512": "512-bit hash",
"genPresetUUIDv4": "UUID",
"genHidePass": "Hide password", "genHidePass": "Hide password",
"genShowPass": "Show password", "genShowPass": "Show password",
"grpTitle": "Group", "grpTitle": "Group",
@ -132,6 +138,7 @@
"genPsBrackets": "Brackets", "genPsBrackets": "Brackets",
"genPsHigh": "High ASCII characters", "genPsHigh": "High ASCII characters",
"genPsAmbiguous": "Ambiguous symbols", "genPsAmbiguous": "Ambiguous symbols",
"genPsSpaces": "Spaces",
"genPsInclude": "Additional symbols to include", "genPsInclude": "Additional symbols to include",
"genPsExample": "Example of generated password", "genPsExample": "Example of generated password",
"genPsPattern": "Pattern", "genPsPattern": "Pattern",
@ -421,6 +428,7 @@
"setGenLocale": "Language", "setGenLocale": "Language",
"setGenLocOther": "other languages are available as plugins", "setGenLocOther": "other languages are available as plugins",
"setGenFontSize": "Font size", "setGenFontSize": "Font size",
"setGenFontSizeSmall": "Small",
"setGenFontSizeNormal": "Normal", "setGenFontSizeNormal": "Normal",
"setGenFontSizeLarge": "Large", "setGenFontSizeLarge": "Large",
"setGenFontSizeLargest": "Largest", "setGenFontSizeLargest": "Largest",
@ -569,6 +577,7 @@
"setFileYubiKeyHeader": "YubiKey", "setFileYubiKeyHeader": "YubiKey",
"setFileYubiKeyBody": "Using a YubiKey as a part of master key is dangerous and you may lose access to your passwords if something goes wrong. Have you made a backup of your file before changing this setting?", "setFileYubiKeyBody": "Using a YubiKey as a part of master key is dangerous and you may lose access to your passwords if something goes wrong. Have you made a backup of your file before changing this setting?",
"setFileYubiKeyErrorEmptyMac": "Looks like there's a YubiKey plugged in, but it's not visible. KeeWeb must be added to the Input Monitoring section of security settings to access YubiKeys.", "setFileYubiKeyErrorEmptyMac": "Looks like there's a YubiKey plugged in, but it's not visible. KeeWeb must be added to the Input Monitoring section of security settings to access YubiKeys.",
"setDevConsole": "Open Dev Tools",
"setShTitle": "Shortcuts", "setShTitle": "Shortcuts",
"setShShowAll": "show all items", "setShShowAll": "show all items",
"setShColors": "show items with colors", "setShColors": "show items with colors",

View File

@ -93,10 +93,13 @@
"genPresetPronounceable": "aussprechbar", "genPresetPronounceable": "aussprechbar",
"genPresetMed": "Durchschnittliche Länge", "genPresetMed": "Durchschnittliche Länge",
"genPresetLong": "lang", "genPresetLong": "lang",
"genPresetPassphrase": "Sicheres Passwort",
"genPresetPin4": "4-stellige PIN", "genPresetPin4": "4-stellige PIN",
"genPresetMac": "MAC-Adresse", "genPresetMac": "MAC-Adresse",
"genPresetHash128": "128-Bit-Hash", "genPresetHash128": "128-Bit-Hash",
"genPresetHash256": "256-Bit-Hash", "genPresetHash256": "256-Bit-Hash",
"genPresetHash512": "512-Bit-Hash",
"genPresetUUIDv4": "UUID",
"genHidePass": "Passwort ausblenden", "genHidePass": "Passwort ausblenden",
"genShowPass": "Passwort einblenden", "genShowPass": "Passwort einblenden",
"grpTitle": "Gruppe", "grpTitle": "Gruppe",
@ -127,6 +130,8 @@
"genPsSpecial": "Sonderzeichen", "genPsSpecial": "Sonderzeichen",
"genPsBrackets": "Klammern", "genPsBrackets": "Klammern",
"genPsHigh": "Erweiterte ASCII-Zeichen", "genPsHigh": "Erweiterte ASCII-Zeichen",
"genPsAmbiguous": "Leerzeichen",
"genPsSpaces": "Spaces",
"genPsAmbiguous": "Ähnliche Zeichen", "genPsAmbiguous": "Ähnliche Zeichen",
"genPsInclude": "Zusätzliche Symbole angeben", "genPsInclude": "Zusätzliche Symbole angeben",
"genPsExample": "Beispiel für ein generiertes Passwort", "genPsExample": "Beispiel für ein generiertes Passwort",
@ -412,6 +417,7 @@
"setGenLocale": "Sprache", "setGenLocale": "Sprache",
"setGenLocOther": "Andere Sprachen sind als Plugins verfügbar.", "setGenLocOther": "Andere Sprachen sind als Plugins verfügbar.",
"setGenFontSize": "Schriftgröße", "setGenFontSize": "Schriftgröße",
"setGenFontSizeSmall": "Small",
"setGenFontSizeNormal": "Standard", "setGenFontSizeNormal": "Standard",
"setGenFontSizeLarge": "Groß", "setGenFontSizeLarge": "Groß",
"setGenFontSizeLargest": "Größte", "setGenFontSizeLargest": "Größte",
@ -555,6 +561,7 @@
"setFileYubiKeyHeader": "YubiKey", "setFileYubiKeyHeader": "YubiKey",
"setFileYubiKeyBody": "Es ist gefährlich, einen YubiKey als Teil des Hauptschlüssels zu verwenden. Falls etwas schief geht, besteht möglicherweise kein Zugriff mehr auf die Passwörter. Haben Sie ein Backup Ihrer Datei erstellt, bevor diese Einstellung geändert wurde?", "setFileYubiKeyBody": "Es ist gefährlich, einen YubiKey als Teil des Hauptschlüssels zu verwenden. Falls etwas schief geht, besteht möglicherweise kein Zugriff mehr auf die Passwörter. Haben Sie ein Backup Ihrer Datei erstellt, bevor diese Einstellung geändert wurde?",
"setFileYubiKeyErrorEmptyMac": "Scheinbar wurde ein YubiKey angeschlossen, er ist aber nicht sichtbar. KeeWeb muss in den Sicherheitseinstellungen im Abschnitt Input-Monitoring hinzugefügt werden, um auf YubiKeys zugreifen zu können.", "setFileYubiKeyErrorEmptyMac": "Scheinbar wurde ein YubiKey angeschlossen, er ist aber nicht sichtbar. KeeWeb muss in den Sicherheitseinstellungen im Abschnitt Input-Monitoring hinzugefügt werden, um auf YubiKeys zugreifen zu können.",
"setDevConsole": "Open Dev Tools",
"setShTitle": "Tastenkürzel", "setShTitle": "Tastenkürzel",
"setShShowAll": "alle Einträge anzeigen", "setShShowAll": "alle Einträge anzeigen",
"setShColors": "mit Farben markierte Einträge anzeigen", "setShColors": "mit Farben markierte Einträge anzeigen",
@ -692,4 +699,4 @@
"yubiKeyDisabledErrorBody": "YubiKey ist zum Öffnen dieser Datei erforderlich. Bitte USB-Geräte in den Einstellungen aktivieren.", "yubiKeyDisabledErrorBody": "YubiKey ist zum Öffnen dieser Datei erforderlich. Bitte USB-Geräte in den Einstellungen aktivieren.",
"yubiKeyErrorWithCode": "YubiKey-Fehler, Code {}.", "yubiKeyErrorWithCode": "YubiKey-Fehler, Code {}.",
"bioOpenAuthPrompt": "„{}“ öffnen" "bioOpenAuthPrompt": "„{}“ öffnen"
} }

View File

@ -96,10 +96,13 @@
"genPresetPronounceable": "prononçable", "genPresetPronounceable": "prononçable",
"genPresetMed": "longueur moyenne", "genPresetMed": "longueur moyenne",
"genPresetLong": "long", "genPresetLong": "long",
"genPresetPassphrase": "Phrase Secrète",
"genPresetPin4": "code à 4 chiffres", "genPresetPin4": "code à 4 chiffres",
"genPresetMac": "adresse MAC", "genPresetMac": "adresse MAC",
"genPresetHash128": "hash 128 bits", "genPresetHash128": "hash 128 bits",
"genPresetHash256": "hash 256 bits", "genPresetHash256": "hash 256 bits",
"genPresetHash512": "hash 512 bits",
"genPresetUUIDv4": "UUID",
"genHidePass": "Masquer le mot de passe", "genHidePass": "Masquer le mot de passe",
"genShowPass": "Afficher le mot de passe", "genShowPass": "Afficher le mot de passe",
"grpTitle": "Groupe", "grpTitle": "Groupe",
@ -131,6 +134,7 @@
"genPsBrackets": "Parenthèses", "genPsBrackets": "Parenthèses",
"genPsHigh": "Caractères ASCII étendus", "genPsHigh": "Caractères ASCII étendus",
"genPsAmbiguous": "Caractères ambigus", "genPsAmbiguous": "Caractères ambigus",
"genPsSpaces": "Caractères espacial",
"genPsInclude": "Caractères additionnels à inclure", "genPsInclude": "Caractères additionnels à inclure",
"genPsExample": "Exemple de mot de passe généré", "genPsExample": "Exemple de mot de passe généré",
"genPsPattern": "Modèle", "genPsPattern": "Modèle",
@ -420,6 +424,7 @@
"setGenLocale": "Langue", "setGenLocale": "Langue",
"setGenLocOther": "d'autres langues sont disponibles en tant que modules", "setGenLocOther": "d'autres langues sont disponibles en tant que modules",
"setGenFontSize": "Taille de police", "setGenFontSize": "Taille de police",
"setGenFontSizeSmall": "Small",
"setGenFontSizeNormal": "Normal", "setGenFontSizeNormal": "Normal",
"setGenFontSizeLarge": "Large", "setGenFontSizeLarge": "Large",
"setGenFontSizeLargest": "Très large", "setGenFontSizeLargest": "Très large",
@ -566,6 +571,7 @@
"setFileYubiKeyHeader": "YubiKey", "setFileYubiKeyHeader": "YubiKey",
"setFileYubiKeyBody": "Utiliser une YubiKey comme partie de la clé maitre est dangeureux, et vous risquez de perdre l'accès à vos mots de passe si quelque chose tourne mal. Avez vous réalisé une sauvegarde de votre fichier avant de modifier les paramètres ?", "setFileYubiKeyBody": "Utiliser une YubiKey comme partie de la clé maitre est dangeureux, et vous risquez de perdre l'accès à vos mots de passe si quelque chose tourne mal. Avez vous réalisé une sauvegarde de votre fichier avant de modifier les paramètres ?",
"setFileYubiKeyErrorEmptyMac": "Il semble qu'il y a une YubiKey connectée, mais elle est invisible. KeeWeb doit avoir été autorisé dans la section \"Surveillance de lentrée\" des paramètres de sécurité pour se connecter à la YubiKey.", "setFileYubiKeyErrorEmptyMac": "Il semble qu'il y a une YubiKey connectée, mais elle est invisible. KeeWeb doit avoir été autorisé dans la section \"Surveillance de lentrée\" des paramètres de sécurité pour se connecter à la YubiKey.",
"setDevConsole": "Outils de développement ouverts",
"setShTitle": "Raccourcis", "setShTitle": "Raccourcis",
"setShShowAll": "montrer tout", "setShShowAll": "montrer tout",
"setShColors": "montrer les champs en couleur", "setShColors": "montrer les champs en couleur",
@ -773,4 +779,4 @@
"selectEntrySubdomains": "Sous-domaines", "selectEntrySubdomains": "Sous-domaines",
"selectEntryFieldHeader": "Sélectionnez un champ", "selectEntryFieldHeader": "Sélectionnez un champ",
"selectEntryFieldTouch": "Appuyez sur le bouton de votre appareil pour générer un code à usage unique." "selectEntryFieldTouch": "Appuyez sur le bouton de votre appareil pour générer un code à usage unique."
} }

View File

@ -21,10 +21,7 @@ for (let i = 65 /* 'A' */; i <= 90 /* 'Z' */; i++) {
} }
const symbolsPerCharClass = new Uint8Array([ const symbolsPerCharClass = new Uint8Array([
95 /* ASCII symbols */, 95 /* ASCII symbols */, 10 /* digits */, 26 /* lowercase letters */, 26 /* uppercase letters */
10 /* digits */,
26 /* lowercase letters */,
26 /* uppercase letters */
]); ]);
function passwordStrength(password) { function passwordStrength(password) {