mirror of
https://github.com/bitwarden/browser
synced 2025-12-18 09:13:33 +00:00
formatting cleanup
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user