filmov
tv
PYTHON - Şifre oluşturma programı (6 DK)

Показать описание
// ---------------------------------------------------------------
harfler = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z']
numaralar = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9']
ozelKarakterler = ['!', '@', '#', '$', '%', '^', '&', '*', '(', ')', '+', '.']
// ---------------------------------------------------------------
Şifre oluşturma programı.
Python ile basit bir konsol uygulaması !
Bu videoda 10 dakikada yapabileceğiniz bir uygulama. Genel anlamda püf noktaları göstermeye çalıştım.
Kodun tamamı
import random
harfler = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z']
numaralar = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9']
ozelKarakterler = ['!', '@', '#', '$', '%', '^', '&', '*', '(', ')', '+', '.']
def createPass():
password = ''
passwordLength = int(input('Şifre uzunluğu:'))
for i in range(passwordLength):
print(password)
# createPass()
def createPassOptions():
ozel = input('Ozel karakter olsun mu (Y/N)')
numara = input('Numara olsun mu (Y/N)')
passwordLength = int(input('Şifre uzunluğu:'))
password=''
for i in range(passwordLength):
print(password)
createPassOptions()
harfler = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z']
numaralar = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9']
ozelKarakterler = ['!', '@', '#', '$', '%', '^', '&', '*', '(', ')', '+', '.']
// ---------------------------------------------------------------
Şifre oluşturma programı.
Python ile basit bir konsol uygulaması !
Bu videoda 10 dakikada yapabileceğiniz bir uygulama. Genel anlamda püf noktaları göstermeye çalıştım.
Kodun tamamı
import random
harfler = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z']
numaralar = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9']
ozelKarakterler = ['!', '@', '#', '$', '%', '^', '&', '*', '(', ')', '+', '.']
def createPass():
password = ''
passwordLength = int(input('Şifre uzunluğu:'))
for i in range(passwordLength):
print(password)
# createPass()
def createPassOptions():
ozel = input('Ozel karakter olsun mu (Y/N)')
numara = input('Numara olsun mu (Y/N)')
passwordLength = int(input('Şifre uzunluğu:'))
password=''
for i in range(passwordLength):
print(password)
createPassOptions()
Комментарии