-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathsifre_sorma.py
More file actions
31 lines (24 loc) · 815 Bytes
/
sifre_sorma.py
File metadata and controls
31 lines (24 loc) · 815 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
#! /usr/bin/python3
import hashlib
import sys
from termcolor import colored
import time
sifre_asil = "b74d04ca135c86e95f82d058f6999d65"
#basit bir sifre md5 decrypter ile hemen bulunabilir.
def sor():
global a
a += 1
girilen = str(input(colored("Lütfen şifrenizi giriniz: ", "blue")))
girilen_sifre = hashlib.md5(girilen.encode('utf-8')).hexdigest()
if girilen_sifre == sifre_asil:
pass
elif girilen_sifre != sifre_asil and a < 3:
print(colored("\nŞifreniz Hatalıydı! Lütfen Tekrar Deneyin...", "red"))
sor()
else:
print(colored("\nŞifrenizi 3 Kere Yanlış Girdiniz! Çıkış Yapılıyor...", "red"))
time.sleep(0.8)
sys.exit()
a=0
sor()
print(colored("TEBRİKLER BAŞARILI BİR ŞEKİLDE GİRİŞ YAPILDI...\n", "green"))