1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-18 09:13:33 +00:00

formatting cleanup

This commit is contained in:
Kyle Spearrin
2018-02-28 11:09:10 -05:00
parent e1041e9b5b
commit e3b3e444db
2 changed files with 5 additions and 12 deletions

View File

@@ -453,13 +453,8 @@ export class CryptoService implements CryptoServiceAbstraction {
}
async sha1(password: string): Promise<string> {
const hash = await Crypto.subtle.digest(
{
name: 'SHA-1',
},
UtilsService.fromUtf8ToArray(password),
);
const passwordArr = UtilsService.fromUtf8ToArray(password);
const hash = await Crypto.subtle.digest({ name: 'SHA-1' }, passwordArr);
return UtilsService.fromBufferToHex(hash);
}