猫史档案馆


【Python作品分享】密钥判断 v1.7.10【作品秀】

用户:酒_笙酒_笙查看:0 回复:0 评论:0 创建时间:2021-06-19T14:31:58


【作品展示】

center_image

 

【作品介绍】

这是我闲着没事干写出的一个用于判断密钥是否成立的小程序,仅作参考,command后填写 /ik 开始判断,可根据开放的源码测试生成密钥,或是等待我开放密钥生成程序。欢迎提出bug,反馈邮箱: chengwenhao_183@163.com

 

【作品源代码】

import time


# Necessary data
vault = 0
Userinput = 'userinput'
Passint = 'none'
inint = 'none'
verify = '000000'
Getinfo = '9'
command = 'none'
pastinfo = 0
ram = 0
cam = 0
dam = 0
print(time.ctime())
# def

def GetKey():

    print('输入密钥:')
    Userinput = input()
    Getinfo = Userinput[11]
    ram = int(Getinfo)
    Getinfo = ram
    cam = Userinput[3]
    dam = int(cam)
    cam = dam
    Get_Mdc_11()
    if (Userinput[6] == 'C' and Userinput[8] == 'W' and Userinput[10] == 'H'):
        if (Userinput[11] == cam):
            Passerent()
        else:
            print('[Error]密钥获取失败')
    elif (Userinput[0] == '0' and Userinput[6] == '6' and Userinput[8] == '9'):
        if (Userinput[11] == cam):
            Passerent()
        else:
            print('[Error]密钥获取失败')
    else:
        print('[Error]密钥获取失败')

def Passerent():

    print('[INFO]密钥输入成功!')
    print('是否记住密钥?[y/n]')
    Passint = input()
    if (Passint == 'y'):
        print('[INFO]成功记住!')
    elif (Passint == 'n'):
        print('[INFO]密钥被遗忘!')
        Userinput = 'none'
    else:
        print('[INFO]失败!')

def Get_Mdc_11(Getinfo):

    if (Getinfo % 3 != 0):
        passint += (Getinfo % 3)
        if (Getinfo <= 8):
            pastinfo += Getinfo
        else:
            Getinfo = (pastinfo % 5)
    else:
        pastinfo += 1

# The code section
print('command:')
command = input()
if (command == '/ik'):
    GetKey()

 

【提示】

部分含有Python第三方库相关内容的作品,在海龟编辑器网页端无法运行哦!如遇到这种情况,可以打开下面的链接,下载海龟编辑器客户端:

https://python.codemao.cn


回复

上一页1 页 / 共 0下一页