Skip to content

Commit

Permalink
Change default key size
Browse files Browse the repository at this point in the history
We don't need 256 bit keys, and they make for larger URLs for sharing
  • Loading branch information
LiamMorrow committed Aug 8, 2024
1 parent a55a0a2 commit b189f99
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion LiftLog.Api/LiftLog.Api.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@

<ItemGroup>
<PackageReference Include="cuid.net" Version="6.0.0" />
<PackageReference Include="EFCore.NamingConventions" Version="8.0.3" />
<PackageReference Include="FluentValidation" Version="11.9.2" />
<PackageReference Include="FluentValidation.DependencyInjectionExtensions" Version="11.9.2" />
<PackageReference Include="EFCore.NamingConventions" Version="8.0.3" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="8.0.7">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
Expand Down
2 changes: 2 additions & 0 deletions LiftLog.Lib/Services/OsEncryptionService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,8 @@ public ValueTask<AesKey> GenerateAesKeyAsync()
{
//Generate a public/private key pair.
var aes = Aes.Create();

aes.KeySize = 128;
aes.GenerateKey();

return ValueTask.FromResult(new AesKey(aes.Key));
Expand Down

0 comments on commit b189f99

Please sign in to comment.