Commit f84b3390 by BellCodeEditor

auto save

parent e3160ea5
Showing with 25 additions and 0 deletions
import turtle
turtle.hideturtle()
turtle.goto(-250,0)
screen=turtle.Screen()
screen.bgcolor("white")
import random
# 私钥
key =turtle.textinput("加密No.1","是")
# 要加密语句
message=turtle.textinput("加密的内容","由此处输入")
final=""
for i in message:
str1=i
str2=random.choice(key)
str3=random.choice(key)
str4=str1+str2+str3
final=final+str4
noise=turtle.textinput("干扰为(加密No.2)","输入")
final=final+noise
place=random.randint(0,len(final))
final2=str(final)
turtle.write(final2,font=("Times",10))
turtle.done()
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment