1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-20 02:03:39 +00:00

[PM-5610] add eff long word list generator (#7748)

This commit is contained in:
✨ Audrey ✨
2024-02-07 13:24:32 -05:00
committed by GitHub
parent 82cb52a938
commit 6d79231476
10 changed files with 227 additions and 27 deletions

View File

@@ -1,8 +1,9 @@
import { GENERATOR_DISK, GENERATOR_MEMORY, KeyDefinition } from "../../platform/state";
import { GENERATOR_DISK, KeyDefinition } from "../../platform/state";
import { PassphraseGenerationOptions } from "./passphrase/passphrase-generation-options";
import { GeneratedPasswordHistory } from "./password/generated-password-history";
import { PasswordGenerationOptions } from "./password/password-generation-options";
import { EffUsernameGenerationOptions } from "./username/eff-username-generator-options";
/** plaintext password generation options */
export const PASSWORD_SETTINGS = new KeyDefinition<PasswordGenerationOptions>(
@@ -23,18 +24,9 @@ export const PASSPHRASE_SETTINGS = new KeyDefinition<PassphraseGenerationOptions
);
/** plaintext username generation options */
export const ENCRYPTED_USERNAME_SETTINGS = new KeyDefinition<PasswordGenerationOptions>(
export const EFF_USERNAME_SETTINGS = new KeyDefinition<EffUsernameGenerationOptions>(
GENERATOR_DISK,
"usernameGeneratorSettings",
{
deserializer: (value) => value,
},
);
/** plaintext username generation options */
export const PLAINTEXT_USERNAME_SETTINGS = new KeyDefinition<PasswordGenerationOptions>(
GENERATOR_MEMORY,
"usernameGeneratorSettings",
"effUsernameGeneratorSettings",
{
deserializer: (value) => value,
},