diff --git a/diy4.py b/diy4.py new file mode 100644 index 0000000..15289dd --- /dev/null +++ b/diy4.py @@ -0,0 +1,21 @@ +import random + +# 私钥 +key = "YOU IS I " +# 要加random.choice(key) +sum='' +a = "我是迷你他爸爸" +z=input('qsrlm') +for i in a: + a1=i + a2=random.choice(key) + a3=random.choice(key) + c =a1+a2+a3 + sum=sum+c +o=list(sum) +o.insert(random.randint(0,len(o)),z) +u="".join(o) +print(u) +# 请使用私钥key,对message进行加密 + + diff --git a/sewew.py b/sewew.py new file mode 100644 index 0000000..49d5a74 --- /dev/null +++ b/sewew.py @@ -0,0 +1,13 @@ +import random + +# 私钥 +key = "YOU IS I " +sum='' +a='牛逼牛逼牛逼' +for i in a: + a1 =i + a2 =random.choice(key) + a3 =random.choice(key) + c= a1+a2+a3 + sum=sum+c +print(sum) \ No newline at end of file