16 lines
469 B
Plaintext
16 lines
469 B
Plaintext
import TrieNode from './TrieNode';
|
|
export interface PasswordChanges {
|
|
letter: string;
|
|
substitution: string;
|
|
}
|
|
export type IndexedPasswordChanges = PasswordChanges & {
|
|
i: number;
|
|
};
|
|
export interface PasswordWithSubs {
|
|
password: string;
|
|
changes: IndexedPasswordChanges[];
|
|
isFullSubstitution: boolean;
|
|
}
|
|
declare const getCleanPasswords: (password: string, limit: number, trieRoot: TrieNode) => PasswordWithSubs[];
|
|
export default getCleanPasswords;
|