-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathtoken.py
More file actions
42 lines (27 loc) · 750 Bytes
/
token.py
File metadata and controls
42 lines (27 loc) · 750 Bytes
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
38
39
40
41
42
import os, time, random, sys
from colorium import *
uzunluk = 58
chars = "-abcdefghijklmnopq_rstu.vwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ123456789"
def gen():
os.system("clear")
while True:
print("N", end="")
for i in range(uzunluk):
token = random.choice(chars)
print(token, end="")
print("")
time.sleep(0.5)
def genwin():
os.system("cls")
while True:
print("N", end="")
for i in range(uzunluk):
token = random.choice(chars)
print(token, end="")
print("")
time.sleep(0.5)
oscheck = os.name
if oscheck == "nt":
genwin()
elif oscheck == "posix":
gen()