1
0
mirror of https://github.com/bitwarden/mobile synced 2026-01-05 18:13:36 +00:00

PM-4739 Implement checksum uri validation

This commit is contained in:
Carlos Gonçalves
2023-12-04 16:39:23 +00:00
parent f013f69669
commit b2374ed5f6
9 changed files with 37 additions and 5 deletions

View File

@@ -1153,6 +1153,8 @@ namespace Bit.Core.Services
Match = uri.Match
};
await EncryptObjPropertyAsync(uri, loginUri, new HashSet<string> { "Uri" }, key);
var uriHash = await _cryptoService.HashAsync(uri.Uri, CryptoHashAlgorithm.Sha256);
loginUri.UriChecksum = await _cryptoService.EncryptAsync(uriHash, key);
cipher.Login.Uris.Add(loginUri);
}
}