pull/3/head
malaohu 4 years ago committed by GitHub
parent d564354f82
commit 4acb240b73
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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')

Loading…
Cancel
Save