using System.Runtime.CompilerServices;
using System.Security.Cryptography;
using Microsoft.AspNetCore.Cryptography.KeyDerivation;
using Microsoft.Extensions.Identity.Core;
using Microsoft.Extensions.Options;
public static void Main()
var passwordHasher = new Microsoft.AspNetCore.Identity.PasswordHasher<string>();
var hashedPassword = passwordHasher.HashPassword("utente_non_utilizzato", "1qaz2wsx3edc");
Console.WriteLine(hashedPassword);
var res = passwordHasher.VerifyHashedPassword("utente_non_utilizzato2", hashedPassword, "1qaz2wsx3edc");