forked from Geonaute/WPA-ro
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPyCryptoAnimation.py
37 lines (36 loc) · 1002 Bytes
/
PyCryptoAnimation.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
import time, sys, random, string
print "\n"*2
word = """
` ` ` ` ` \ / ` ` `
-#o##-## # ` ` - + - ` `` `
#o()()# `_____ ` / \ ` ` `
|()o#` | | |___ ___ ___`_ _` `
# # | ` | | .'| . | . | | | `
## -+- |__|__|__,| _| _|_ | `
# ` ` | ` ` ` |_|`|_| |___| `
`_____ ` `_`_ ` _ ` ` ` ` ` #
| | |___| |_|_| |___`_ _`___ ` ##
| | . | | | . | .'| | |_ -| # ##|
|__|__|___|_|_|___|__,|_ |___| #o()o#
` ``` | ` ` |___| `# ##()()
` ` ~ -*- ~ ` ` ## # =##o
` ` ` | ` ` ` ` ` ` `"""
word_dict = {}
rate = 10
for _ in word:
word_dict.update({_:0})
while 0 in word_dict.values():
if random.choice(range(rate)) == 0:
while True:
p = random.choice(word_dict.keys())
if word_dict[p] < 1:
word_dict[p] = 1
break
out = ""
for _ in word:
if word_dict[_] == 0:
out += random.choice(string.printable[:94])
else:
out += _
sys.stdout.write("\r "+out)
time.sleep(0.08)