DotNet.AuthorizeClient/Program.cs
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Windows.Forms;
namespace DotNet.AuthorizeClient
{
static class Program
{
#region 软件授权相关配置
/// <summary>
/// 系统配置文件路径
/// </summary>
internal static readonly string FileLicense = Application.StartupPath + @"\License\License.dat";
/// <summary>
/// 软件过期标识文件路径
/// </summary>
internal static readonly string FileIsExpired = Application.StartupPath + @"\License\IsExpired.dat";
#region 公钥值|注意,公钥值必须写死在程序里,不能从程序外部(xml文件,注册表等)读取,不然会被通过替换公钥而破解
/// <summary>
/// RSA公钥Modulus
/// </summary>
internal static readonly string PublicKeyModulus = "zr1QHo3CAAPP5CKc3AEbNMY3MzDluqprbpaZq3Aw+hGLpZyuI8zgmZsfAhYZdlAYB+kDVC/7gJKJL4xSlxqHIrgM+Id4N38EPm2dv1euCm21ci753VY1/SwHfCZARAUoSz3orIrubwFmht1Bu+pqcnin83fFB/vP7WLFfJOv80s=";
/// <summary>
/// RSA公钥Exponent
/// </summary>
internal static readonly string PublicKeyExponent = "AQAB";
#endregion
/// <summary>
/// ***********授权检测方法**************************************
///
/// 方法一:计时器(计时间隔为1分钟)|
/// 用于每隔一段时间执行软件授权检查|
/// 间隔时间为软件授权到期允许的正误差时间|
/// 例如:若间隔时间为1天,且软件授权截止日为“2015-05-05”,
/// 则软件一直运行的话,在“2015-05-06”才会检测到授权过期。
///
/// 方法二:
/// 程序启动时检测一次授权信息;
/// 获取到程序过期时间与当前时间差,定义一个计时器,到了过期时间再检测一次授权信息;
/// 这样就避免了重复多次检测授权信息,造成性能上的浪费。
/// **************************************************************
/// </summary>
internal static readonly System.Timers.Timer TimerOneMinite = new System.Timers.Timer(60000);
#endregion
/// <summary>
/// 应用程序的主入口点。
/// </summary>
[STAThread]
static void Main()
{
Application.EnableVisualStyles();
后面还有 8 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。