Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # -*- coding: utf-8 -*-
- # Test Activation key = "YW5plHFrameWbJmZa5RwamuVlJOWbGmVgqCknGKIeJeJop-Zn6qrYm1ibWZoY29raGNmhIVhkoWWr5ZpaGht"
- # Test License key = "Z21tlnFrammWapmZZ5Rub2aYlJuYamuWg6ChmWKGepOLnqaZpa6qY25iamNnZWtqZWliiYdolYSWrZZoZ2Vs"
- # Test message = "099a9642_4bd3_882d_cc44_Mile-PC_Windows-7-6.1.7601-SP1_Maya2018"
- # CODE TO RUN IN MAYA (outputs variable "message" in code below in order to obtain Activation key):
- #
- # import uuid, platform
- # PCN = platform.node()
- # OSnVer = platform.platform()
- # MayaVer = cmds.about(version=1)
- # ex1 = cmds.optionVar(ex='sphereAxisModeET')
- # ex2 = cmds.optionVar(ex='cubeAxisModeET')
- # ex3 = cmds.optionVar(ex='planeAxisModeET')
- # ex4 = cmds.optionVar(ex='coneAxisModeET')
- #
- # msgA = cmds.optionVar(q='sphereAxisModeET')
- # msgB = cmds.optionVar(q='cubeAxisModeET')
- # msgC = cmds.optionVar(q='planeAxisModeET')
- # msgD = cmds.optionVar(q='coneAxisModeET')
- # message = msgA + '_' + msgB + '_' + msgC + '_' + msgD + '_' + PCN + '_' + OSnVer + '_' + 'Maya' + MayaVer
- # print(message)
- import base64
- message = input("Enter your output from the maya prompt here, wrapped in quotation marks:")
- def getCPK():
- return '744585677675456'
- key = getCPK()
- enc = []
- for i in range(len(message)):
- key_c = key[(i % len(key))]
- enc_c = chr((ord(message[i]) + ord(key_c)) % 256)
- enc.append(enc_c)
- enc = base64.urlsafe_b64encode(('').join(enc))
- print(enc)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement