Commit 9ee840e2 by BellCodeEditor

save project

parent 29315db7
Showing with 6 additions and 5 deletions
...@@ -9,7 +9,8 @@ for i in message: ...@@ -9,7 +9,8 @@ for i in message:
c=random.choice(key) c=random.choice(key)
d=a+b+c d=a+b+c
key_message=key_message+d key_message=key_message+d
message1=list(key_message) list_message=list(key_message)
message1.insert(random.randint(0,len(message1)) index=random.randint(0,len(key_message))
message2="".join(message1) list_message.insert(index,noise)
print(message2) result_message="".join(list_message)
\ No newline at end of file print(result_message)
\ 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