1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-16 08:13:42 +00:00

convert password generator to jslib

This commit is contained in:
Kyle Spearrin
2018-01-09 17:55:32 -05:00
parent 9b327683b4
commit 38502b5447
4 changed files with 257 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
import { PasswordHistory } from '../models/domain/passwordHistory';
export interface PasswordGenerationService {
optionsCache: any;
history: PasswordHistory[];
generatePassword(options: any): string;
getOptions(): any;
saveOptions(options: any): Promise<any>;
getHistory(): PasswordHistory[];
addHistory(password: string): Promise<any>;
clear(): Promise<any>;
}