这个只是方便生成授权,只要填入各个程序的licensehash就能生成不通的应用程序的授权了,licensehash的外置,比原版的生成器方便使用,只要一个生成器就能给你所有的加密程序提供授权的生成了。程序使用C#,可以使用Reflector查看代码,程序没有加壳。
顶到30楼的话,直接提供C#的源代码。
大家支持的力度这么大,现在不到30楼直接放出源码,
希望版主给个精华。
这里主要是对WinlicenseSDK.dll根据生成不同KEY,完成他的接口调用。完成这些接口也就是完成了KEY的生成。
class WinlicenseSDK
{
[DllImport( "WinlicenseSDK.dll", EntryPoint="WLGenPassword", CallingConvention = CallingConvention.StdCall )]
public static extern int WLGenPassword(string PassHash, string Name, StringBuilder PasswordBuffer);
[DllImport( "WinlicenseSDK.dll", EntryPoint="WLGenLicenseFileKey", CallingConvention = CallingConvention.StdCall )]
public static extern int WLGenLicenseFileKey(string LicenseHash, string UserName, string Organization, string CustomData, string MachineID,
int NumDays, int NumExec, SystemTime NewDate, int CountryId, int Runtime, int GlobalTime, byte[] LicenseBuffer);
[DllImport( "WinlicenseSDK.dll", EntryPoint="WLGenLicenseRegistryKey", CallingConvention = CallingConvention.StdCall )]
public static extern int WLGenLicenseRegistryKey(string LicenseHash, string UserName, string Organization, string CustomData, string MachineID,
int NumDays, int NumExec, SystemTime NewDate, int CountryId, int Runtime, int GlobalTime, string RegName, string RegValueName, byte[] LicenseBuffer);
[DllImport( "WinlicenseSDK.dll", EntryPoint="WLGenLicenseTextKey", CallingConvention = CallingConvention.StdCall )]
public static extern int WLGenLicenseTextKey(string LicenseHash, string UserName, string Organization, string CustomData, string MachineID,
int NumDays, int NumExec, SystemTime NewDate, int CountryId, int Runtime, int GlobalTime, StringBuilder LicenseBuffer);
[DllImport( "WinlicenseSDK.dll", EntryPoint="WLGenLicenseSmartKey", CallingConvention = CallingConvention.StdCall )]
public static extern int WLGenLicenseSmartKey(string LicenseHash, string UserName, string Organization, string CustomData, string MachineID,
int NumDays, int NumExec, SystemTime NewDate, StringBuilder LicenseBuffer);
}
[注意]传递专业知识、拓宽行业人脉——看雪讲师团队等你加入!