search and ai stabilization work, localization stablized.

This commit is contained in:
master
2026-02-24 23:29:36 +02:00
parent 4f947a8b61
commit b07d27772e
766 changed files with 55299 additions and 3221 deletions

View File

@@ -1,6 +1,7 @@
using System;
using System.Security.Cryptography;
using System.Text;
using static StellaOps.Localization.T;
namespace StellaOps.Cryptography;
@@ -20,12 +21,12 @@ public sealed class Pbkdf2PasswordHasher : IPasswordHasher
if (options.Algorithm != PasswordHashAlgorithm.Pbkdf2)
{
throw new InvalidOperationException("Pbkdf2PasswordHasher only supports the PBKDF2 algorithm.");
throw new InvalidOperationException(_t("crypto.password.algorithm_mismatch", "Pbkdf2PasswordHasher", "PBKDF2"));
}
if (options.Iterations <= 0)
{
throw new InvalidOperationException("PBKDF2 requires a positive iteration count.");
throw new InvalidOperationException(_t("crypto.password.pbkdf2_iterations"));
}
Span<byte> salt = stackalloc byte[SaltLengthBytes];