diff --git a/mixtape.Raven/mixtape.Raven.csproj b/mixtape.Raven/mixtape.Raven.csproj index afcd8b1e..d112fae2 100644 --- a/mixtape.Raven/mixtape.Raven.csproj +++ b/mixtape.Raven/mixtape.Raven.csproj @@ -3,8 +3,9 @@ Mixtape.Raven 1.0.0 - net8.0;net9.0;net10.0 + net10.0 true + Mixtape.Raven Mixtape.Raven embedded @@ -12,12 +13,12 @@ - + - + \ No newline at end of file diff --git a/mixtape.Sqlite/mixtape.Sqlite.csproj b/mixtape.Sqlite/mixtape.Sqlite.csproj index 61ccf4f7..e980c5e4 100644 --- a/mixtape.Sqlite/mixtape.Sqlite.csproj +++ b/mixtape.Sqlite/mixtape.Sqlite.csproj @@ -3,8 +3,9 @@ Mixtape.Sqlite 1.0.0 - net8.0;net9.0;net10.0 + net10.0 true + Mixtape.Sqlite Mixtape.Sqlite embedded @@ -15,7 +16,7 @@ - + \ No newline at end of file diff --git a/mixtape.sln b/mixtape.sln index a3699398..67ff57a2 100644 --- a/mixtape.sln +++ b/mixtape.sln @@ -3,11 +3,11 @@ Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio Version 17 VisualStudioVersion = 17.0.31912.275 MinimumVisualStudioVersion = 10.0.40219.1 -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "mixtape", "mixtape\mixtape.csproj", "{33CD6E46-CD81-42C3-9019-C0EAD557EE99}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Mixtape", "Mixtape\Mixtape.csproj", "{33CD6E46-CD81-42C3-9019-C0EAD557EE99}" EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "mixtape.Raven", "mixtape.Raven\mixtape.Raven.csproj", "{DC79D7EA-FAA1-4701-9C36-8295CD1C45D0}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Mixtape.Raven", "Mixtape.Raven\Mixtape.Raven.csproj", "{DC79D7EA-FAA1-4701-9C36-8295CD1C45D0}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "mixtape.Sqlite", "mixtape.Sqlite\mixtape.Sqlite.csproj", "{A57D88BC-952F-4311-B474-26FBF0FA957E}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Mixtape.Sqlite", "Mixtape.Sqlite\Mixtape.Sqlite.csproj", "{A57D88BC-952F-4311-B474-26FBF0FA957E}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution diff --git a/mixtape/Security/MixtapeSecurityModule.cs b/mixtape/Security/MixtapeSecurityModule.cs index c63f1ae7..cf313ad3 100644 --- a/mixtape/Security/MixtapeSecurityModule.cs +++ b/mixtape/Security/MixtapeSecurityModule.cs @@ -1,6 +1,8 @@ using System.IO; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.DataProtection; +using Microsoft.AspNetCore.DataProtection.AuthenticatedEncryption; +using Microsoft.AspNetCore.DataProtection.AuthenticatedEncryption.ConfigurationModel; using Microsoft.AspNetCore.DataProtection.KeyManagement; using Microsoft.AspNetCore.DataProtection.Repositories; using Microsoft.AspNetCore.Routing; @@ -28,7 +30,11 @@ internal class MixtapeSecurityModule : MixtapeModule services.Configure(opts => opts.Default = captchaSection.Get() ?? new CaptchaOptions()); services.AddOptions().Bind(captchaSection); - services.AddDataProtection(); + services.AddDataProtection();/*.UseCryptographicAlgorithms(new AuthenticatedEncryptorConfiguration() + { + EncryptionAlgorithm = EncryptionAlgorithm.AES_256_CBC, + ValidationAlgorithm = ValidationAlgorithm.HMACSHA512 + });*/ services.AddSingleton>(s => { ILoggerFactory loggerFactory = s.GetService() ?? NullLoggerFactory.Instance; diff --git a/mixtape/mixtape.csproj b/mixtape/mixtape.csproj index 781b2111..a7c96062 100644 --- a/mixtape/mixtape.csproj +++ b/mixtape/mixtape.csproj @@ -3,8 +3,9 @@ Mixtape 1.0.0 - net8.0;net9.0;net10.0 + net10.0 true + Mixtape Mixtape embedded @@ -17,7 +18,7 @@ - +