fix: Addressing PR comments

This commit is contained in:
Tyler Kenney 2025-06-06 08:48:46 -04:00
parent 6498aa7fe5
commit 6e313dfffe
5 changed files with 15 additions and 6 deletions

View file

@ -38,8 +38,7 @@ public class KoreaderBookDtoBuilder : IEntityBuilder<KoreaderBookDto>
public KoreaderBookDtoBuilder WithDeviceId(string installId, int userId)
{
using var sha256 = SHA256.Create();
var hash = sha256.ComputeHash(Encoding.UTF8.GetBytes(installId + userId));
var hash = SHA256.HashData(Encoding.UTF8.GetBytes(installId + userId));
_dto.Device_id = hash.ToString();
return this;
}