猫史档案馆


【Python作品分享】密码生成器

用户:可爱的大甲虫ks5d_原开朗的xxxx可爱的大甲虫ks5d_原开朗的xxxx查看:2 回复:2 评论:2 创建时间:2022-12-24T21:17:57


【作品展示】

center_image

 

【作品介绍】

因为太菜把简单的代码写到两位数行的屑kxx发明了19位密码生成器,暴/力/破/解约要114514小时(喜)

这东西主要是为了防止盗号,把这东西当作自己的密码针不戳(

应该得复制到客户端上

 

【作品源代码】

import string
import random
喵allletters = list(string.ascii_lowercase)
bigletters = list(string.ascii_uppercase)
numbers = list("1234567890")
symbles = list("!@#$%^&*()+-=_*/[]{}\|:;<>,.")
blend = ""
for i in range(4):
    yee = random.randint(1,4)
    if yee == 1:
        blend += random.choice(喵allletters)
        blend += random.choice(symbles)
        blend += random.choice(numbers)
        blend += random.choice(bigletters)
    elif yee == 2:
        blend += random.choice(symbles)
        blend += random.choice(bigletters)
        blend += random.choice(numbers)
        blend += random.choice(喵allletters)
    elif yee == 3:
        blend += random.choice(numbers)
        blend += random.choice(bigletters)
        blend += random.choice(symbles)
        blend += random.choice(喵allletters)
    else:
        blend += random.choice(bigletters)
        blend += random.choice(numbers)
        blend += random.choice(喵allletters)
        blend += random.choice(symbles)
for i in range(3):
    yeee = random.randint(1,3)
    if yee == 1:
        blend += random.choice(喵allletters)
        blend += random.choice(symbles)
        blend += random.choice(numbers)
        blend += random.choice(bigletters)
    elif yee == 2:
        blend += random.choice(symbles)
        blend += random.choice(bigletters)
        blend += random.choice(numbers)
        blend += random.choice(喵allletters)
    else:
        blend += random.choice(numbers)
        blend += random.choice(bigletters)
        blend += random.choice(symbles)
        blend += random.choice(喵allletters)
print(blend)

 

【提示】

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

https://python.codemao.cn


回复

上一页1 页 / 共 1下一页
可爱的大甲虫ks5d_原开朗的xxxx可爱的大甲虫ks5d_原开朗的xxxx

喵=s/m,话说这屏蔽词真奇怪(

也是d帖区

点赞0


评论


Mini_editMini_edit

针不戳

点赞0


评论