Kekik 1.5.1__tar.gz → 1.5.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {kekik-1.5.1 → kekik-1.5.2}/Kekik/Sifreleme/CryptoJS.py +8 -2
- {kekik-1.5.1 → kekik-1.5.2}/Kekik.egg-info/PKG-INFO +1 -1
- {kekik-1.5.1 → kekik-1.5.2}/PKG-INFO +1 -1
- {kekik-1.5.1 → kekik-1.5.2}/setup.py +1 -1
- {kekik-1.5.1 → kekik-1.5.2}/Kekik/BIST.py +0 -0
- {kekik-1.5.1 → kekik-1.5.2}/Kekik/Domain2IP.py +0 -0
- {kekik-1.5.1 → kekik-1.5.2}/Kekik/Nesne.py +0 -0
- {kekik-1.5.1 → kekik-1.5.2}/Kekik/Sifreleme/AESManager.py +0 -0
- {kekik-1.5.1 → kekik-1.5.2}/Kekik/Sifreleme/AtobRtt.py +0 -0
- {kekik-1.5.1 → kekik-1.5.2}/Kekik/Sifreleme/HexCodec.py +0 -0
- {kekik-1.5.1 → kekik-1.5.2}/Kekik/Sifreleme/Packer.py +0 -0
- {kekik-1.5.1 → kekik-1.5.2}/Kekik/Sifreleme/__init__.py +0 -0
- {kekik-1.5.1 → kekik-1.5.2}/Kekik/__init__.py +0 -0
- {kekik-1.5.1 → kekik-1.5.2}/Kekik/cli.py +0 -0
- {kekik-1.5.1 → kekik-1.5.2}/Kekik/csv2dict.py +0 -0
- {kekik-1.5.1 → kekik-1.5.2}/Kekik/dict2csv.py +0 -0
- {kekik-1.5.1 → kekik-1.5.2}/Kekik/dict2json.py +0 -0
- {kekik-1.5.1 → kekik-1.5.2}/Kekik/dosya2set.py +0 -0
- {kekik-1.5.1 → kekik-1.5.2}/Kekik/dosya_indir.py +0 -0
- {kekik-1.5.1 → kekik-1.5.2}/Kekik/hwid_kontrol.py +0 -0
- {kekik-1.5.1 → kekik-1.5.2}/Kekik/kisi_ver/__init__.py +0 -0
- {kekik-1.5.1 → kekik-1.5.2}/Kekik/kisi_ver/biyografiler.py +0 -0
- {kekik-1.5.1 → kekik-1.5.2}/Kekik/kisi_ver/isimler.py +0 -0
- {kekik-1.5.1 → kekik-1.5.2}/Kekik/kisi_ver/soyisimler.py +0 -0
- {kekik-1.5.1 → kekik-1.5.2}/Kekik/link_islemleri.py +0 -0
- {kekik-1.5.1 → kekik-1.5.2}/Kekik/list2html.py +0 -0
- {kekik-1.5.1 → kekik-1.5.2}/Kekik/liste_fetis.py +0 -0
- {kekik-1.5.1 → kekik-1.5.2}/Kekik/mail_gonder.py +0 -0
- {kekik-1.5.1 → kekik-1.5.2}/Kekik/okunabilir_byte.py +0 -0
- {kekik-1.5.1 → kekik-1.5.2}/Kekik/proxy_ver.py +0 -0
- {kekik-1.5.1 → kekik-1.5.2}/Kekik/qr_ver.py +0 -0
- {kekik-1.5.1 → kekik-1.5.2}/Kekik/ses_fetis.py +0 -0
- {kekik-1.5.1 → kekik-1.5.2}/Kekik/slugify.py +0 -0
- {kekik-1.5.1 → kekik-1.5.2}/Kekik/terminal_baslik.py +0 -0
- {kekik-1.5.1 → kekik-1.5.2}/Kekik/txt_fetis.py +0 -0
- {kekik-1.5.1 → kekik-1.5.2}/Kekik/unicode_tr.py +0 -0
- {kekik-1.5.1 → kekik-1.5.2}/Kekik/zaman_donustur.py +0 -0
- {kekik-1.5.1 → kekik-1.5.2}/Kekik.egg-info/SOURCES.txt +0 -0
- {kekik-1.5.1 → kekik-1.5.2}/Kekik.egg-info/dependency_links.txt +0 -0
- {kekik-1.5.1 → kekik-1.5.2}/Kekik.egg-info/entry_points.txt +0 -0
- {kekik-1.5.1 → kekik-1.5.2}/Kekik.egg-info/requires.txt +0 -0
- {kekik-1.5.1 → kekik-1.5.2}/Kekik.egg-info/top_level.txt +0 -0
- {kekik-1.5.1 → kekik-1.5.2}/LICENSE +0 -0
- {kekik-1.5.1 → kekik-1.5.2}/MANIFEST.in +0 -0
- {kekik-1.5.1 → kekik-1.5.2}/README.md +0 -0
- {kekik-1.5.1 → kekik-1.5.2}/setup.cfg +0 -0
|
@@ -6,8 +6,8 @@ import hashlib, base64
|
|
|
6
6
|
|
|
7
7
|
class CryptoJS:
|
|
8
8
|
"""
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
Paroladan türetilmiş anahtar ile AES/CBC/PKCS7Padding şifreleme ve şifre çözme işlemleri için bir sınıf.
|
|
10
|
+
CryptoJS AES yöntemine uygundur.
|
|
11
11
|
! » https://gist.github.com/thackerronak/554c985c3001b16810af5fc0eb5c358f
|
|
12
12
|
"""
|
|
13
13
|
KEY_SIZE = 32
|
|
@@ -19,6 +19,7 @@ class CryptoJS:
|
|
|
19
19
|
|
|
20
20
|
@staticmethod
|
|
21
21
|
def evp_kdf(password, salt, key_size=32, iv_size=16, iterations=1, hash_algorithm="md5"):
|
|
22
|
+
"""Paroladan Anahtar ve IV oluşturmak için bir KDF fonksiyonu."""
|
|
22
23
|
target_key_size = key_size + iv_size
|
|
23
24
|
derived_bytes = b""
|
|
24
25
|
block = None
|
|
@@ -41,6 +42,7 @@ class CryptoJS:
|
|
|
41
42
|
|
|
42
43
|
@staticmethod
|
|
43
44
|
def encrypt(password, plain_text):
|
|
45
|
+
"""Verilen metni AES/CBC/PKCS7Padding şifreleme yöntemi ile şifreler."""
|
|
44
46
|
salt = CryptoJS.generate_salt(8)
|
|
45
47
|
key, iv = CryptoJS.evp_kdf(password.encode("utf-8"), salt, key_size=CryptoJS.KEY_SIZE, iv_size=CryptoJS.IV_SIZE)
|
|
46
48
|
|
|
@@ -54,6 +56,7 @@ class CryptoJS:
|
|
|
54
56
|
|
|
55
57
|
@staticmethod
|
|
56
58
|
def decrypt(password, cipher_text):
|
|
59
|
+
"""Verilen şifreli metni AES/CBC/PKCS7Padding şifreleme yöntemi ile çözer."""
|
|
57
60
|
ct_bytes = base64.b64decode(cipher_text)
|
|
58
61
|
salt = ct_bytes[8:16]
|
|
59
62
|
cipher_text_bytes = ct_bytes[16:]
|
|
@@ -67,6 +70,7 @@ class CryptoJS:
|
|
|
67
70
|
|
|
68
71
|
@staticmethod
|
|
69
72
|
def _pad(s):
|
|
73
|
+
"""Veriyi AES blok boyutuna göre doldurur (PKCS7)."""
|
|
70
74
|
block_size = AES.block_size
|
|
71
75
|
padding = block_size - len(s) % block_size
|
|
72
76
|
|
|
@@ -74,8 +78,10 @@ class CryptoJS:
|
|
|
74
78
|
|
|
75
79
|
@staticmethod
|
|
76
80
|
def _unpad(s):
|
|
81
|
+
"""Dolguyu kaldırır (PKCS7)."""
|
|
77
82
|
return s[:-ord(s[-1:])]
|
|
78
83
|
|
|
79
84
|
@staticmethod
|
|
80
85
|
def generate_salt(length):
|
|
86
|
+
"""Belirtilen uzunlukta rastgele bir tuz oluşturur."""
|
|
81
87
|
return get_random_bytes(length)
|
|
@@ -6,7 +6,7 @@ from io import open
|
|
|
6
6
|
setup(
|
|
7
7
|
# ? Genel Bilgiler
|
|
8
8
|
name = "Kekik",
|
|
9
|
-
version = "1.5.
|
|
9
|
+
version = "1.5.2",
|
|
10
10
|
url = "https://github.com/keyiflerolsun/Kekik",
|
|
11
11
|
description = "İşlerimizi kolaylaştıracak fonksiyonların el altında durduğu kütüphane..",
|
|
12
12
|
keywords = ["Kekik", "KekikAkademi", "keyiflerolsun"],
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|