using System;
using System.Security.Cryptography;
using System.Text;

namespace Quasar.Keygen
{
    public static class LicenseGenerator
    {
        private const string SECRET_KEY = "QuasarRAT_2024_SecretKey_DoNotShare";

        public static string GenerateBIN(string hardwareID)
        {
            using (var hmac = new HMACSHA256(Encoding.UTF8.GetBytes(SECRET_KEY)))
            {
                byte[] hash = hmac.ComputeHash(Encoding.UTF8.GetBytes(hardwareID));
                return Convert.ToBase64String(hash).Substring(0, 20).Replace("+", "").Replace("/", "").Replace("=", "");
            }
        }
    }
}
