Stabilize U

This commit is contained in:
master
2026-02-16 07:33:20 +02:00
parent 45c0f1bb59
commit 70fdbfcf25
166 changed files with 20156 additions and 4833 deletions

12
hash-password.csx Normal file
View File

@@ -0,0 +1,12 @@
using System;
using System.Security.Cryptography;
using System.Text;
var password = "Admin@2026";
var iterations = 100000;
var salt = RandomNumberGenerator.GetBytes(32);
var hash = Rfc2898DeriveBytes.Pbkdf2(Encoding.UTF8.GetBytes(password), salt, iterations, HashAlgorithmName.SHA256, 32);
var combined = new byte[salt.Length + hash.Length];
Buffer.BlockCopy(salt, 0, combined, 0, salt.Length);
Buffer.BlockCopy(hash, 0, combined, salt.Length, hash.Length);
Console.WriteLine($"PBKDF2.{iterations}.{Convert.ToBase64String(combined)}");