LevelcodeLicenseAPP/Security/LicenseKeyGenerator.cs
2026-03-25 16:26:11 -03:00

21 lines
414 B
C#

using System;
namespace LevelCode.License.Security
{
public static class LicenseKeyGenerator
{
public static string Gerar()
{
return $"LVL-{Bloco()}-{Bloco()}-{Bloco()}";
}
private static string Bloco()
{
return Guid.NewGuid()
.ToString("N")
.Substring(0, 4)
.ToUpper();
}
}
}