|
|
|
@ -96,9 +96,10 @@ def GenerateLicense(Type : LicenseType, Count : int, UserName : str, MajorVersio
|
|
|
|
|
0, # No Games flag. 0 means "NoGames = false". But it does not work. |
|
|
|
|
0) # No Plugins flag. 0 means "NoPlugins = false". But it does not work. |
|
|
|
|
EncodedLicenseString = VariantBase64Encode(EncryptBytes(0x787, LicenseString.encode())).decode() |
|
|
|
|
with zipfile.ZipFile(EncodedLicenseString, 'w') as f: |
|
|
|
|
FileName = EncodedLicenseString.replace('/','').replace('\\','') |
|
|
|
|
with zipfile.ZipFile(FileName, 'w') as f: |
|
|
|
|
f.writestr('Pro.key', data = EncodedLicenseString) |
|
|
|
|
return EncodedLicenseString |
|
|
|
|
return FileName |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@app.route('/gen') |
|
|
|
|