Kekik 1.5.1__tar.gz → 1.5.3__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.
Potentially problematic release.
This version of Kekik might be problematic. Click here for more details.
- {kekik-1.5.1 → kekik-1.5.3}/Kekik/Sifreleme/CryptoJS.py +8 -2
- {kekik-1.5.1 → kekik-1.5.3}/Kekik/Sifreleme/HexCodec.py +2 -6
- kekik-1.5.3/Kekik/Sifreleme/StringCodec.py +40 -0
- kekik-1.5.3/Kekik/Sifreleme/__init__.py +7 -0
- {kekik-1.5.1 → kekik-1.5.3}/Kekik.egg-info/PKG-INFO +1 -1
- {kekik-1.5.1 → kekik-1.5.3}/Kekik.egg-info/SOURCES.txt +1 -1
- {kekik-1.5.1 → kekik-1.5.3}/PKG-INFO +1 -1
- {kekik-1.5.1 → kekik-1.5.3}/setup.py +1 -1
- kekik-1.5.1/Kekik/Sifreleme/AtobRtt.py +0 -16
- kekik-1.5.1/Kekik/Sifreleme/__init__.py +0 -7
- {kekik-1.5.1 → kekik-1.5.3}/Kekik/BIST.py +0 -0
- {kekik-1.5.1 → kekik-1.5.3}/Kekik/Domain2IP.py +0 -0
- {kekik-1.5.1 → kekik-1.5.3}/Kekik/Nesne.py +0 -0
- {kekik-1.5.1 → kekik-1.5.3}/Kekik/Sifreleme/AESManager.py +0 -0
- {kekik-1.5.1 → kekik-1.5.3}/Kekik/Sifreleme/Packer.py +0 -0
- {kekik-1.5.1 → kekik-1.5.3}/Kekik/__init__.py +0 -0
- {kekik-1.5.1 → kekik-1.5.3}/Kekik/cli.py +0 -0
- {kekik-1.5.1 → kekik-1.5.3}/Kekik/csv2dict.py +0 -0
- {kekik-1.5.1 → kekik-1.5.3}/Kekik/dict2csv.py +0 -0
- {kekik-1.5.1 → kekik-1.5.3}/Kekik/dict2json.py +0 -0
- {kekik-1.5.1 → kekik-1.5.3}/Kekik/dosya2set.py +0 -0
- {kekik-1.5.1 → kekik-1.5.3}/Kekik/dosya_indir.py +0 -0
- {kekik-1.5.1 → kekik-1.5.3}/Kekik/hwid_kontrol.py +0 -0
- {kekik-1.5.1 → kekik-1.5.3}/Kekik/kisi_ver/__init__.py +0 -0
- {kekik-1.5.1 → kekik-1.5.3}/Kekik/kisi_ver/biyografiler.py +0 -0
- {kekik-1.5.1 → kekik-1.5.3}/Kekik/kisi_ver/isimler.py +0 -0
- {kekik-1.5.1 → kekik-1.5.3}/Kekik/kisi_ver/soyisimler.py +0 -0
- {kekik-1.5.1 → kekik-1.5.3}/Kekik/link_islemleri.py +0 -0
- {kekik-1.5.1 → kekik-1.5.3}/Kekik/list2html.py +0 -0
- {kekik-1.5.1 → kekik-1.5.3}/Kekik/liste_fetis.py +0 -0
- {kekik-1.5.1 → kekik-1.5.3}/Kekik/mail_gonder.py +0 -0
- {kekik-1.5.1 → kekik-1.5.3}/Kekik/okunabilir_byte.py +0 -0
- {kekik-1.5.1 → kekik-1.5.3}/Kekik/proxy_ver.py +0 -0
- {kekik-1.5.1 → kekik-1.5.3}/Kekik/qr_ver.py +0 -0
- {kekik-1.5.1 → kekik-1.5.3}/Kekik/ses_fetis.py +0 -0
- {kekik-1.5.1 → kekik-1.5.3}/Kekik/slugify.py +0 -0
- {kekik-1.5.1 → kekik-1.5.3}/Kekik/terminal_baslik.py +0 -0
- {kekik-1.5.1 → kekik-1.5.3}/Kekik/txt_fetis.py +0 -0
- {kekik-1.5.1 → kekik-1.5.3}/Kekik/unicode_tr.py +0 -0
- {kekik-1.5.1 → kekik-1.5.3}/Kekik/zaman_donustur.py +0 -0
- {kekik-1.5.1 → kekik-1.5.3}/Kekik.egg-info/dependency_links.txt +0 -0
- {kekik-1.5.1 → kekik-1.5.3}/Kekik.egg-info/entry_points.txt +0 -0
- {kekik-1.5.1 → kekik-1.5.3}/Kekik.egg-info/requires.txt +0 -0
- {kekik-1.5.1 → kekik-1.5.3}/Kekik.egg-info/top_level.txt +0 -0
- {kekik-1.5.1 → kekik-1.5.3}/LICENSE +0 -0
- {kekik-1.5.1 → kekik-1.5.3}/MANIFEST.in +0 -0
- {kekik-1.5.1 → kekik-1.5.3}/README.md +0 -0
- {kekik-1.5.1 → kekik-1.5.3}/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)
|
|
@@ -3,9 +3,7 @@
|
|
|
3
3
|
class HexCodec:
|
|
4
4
|
@staticmethod
|
|
5
5
|
def encode(utf8_string: str) -> str:
|
|
6
|
-
"""
|
|
7
|
-
UTF-8 stringini kaçış dizileriyle birlikte hex stringine dönüştürür.
|
|
8
|
-
"""
|
|
6
|
+
"""UTF-8 stringini kaçış dizileriyle birlikte hex stringine dönüştürür."""
|
|
9
7
|
byte_data = utf8_string.encode("utf-8")
|
|
10
8
|
hex_string = byte_data.hex()
|
|
11
9
|
escaped_hex = "\\x".join(hex_string[i:i+2] for i in range(0, len(hex_string), 2))
|
|
@@ -14,9 +12,7 @@ class HexCodec:
|
|
|
14
12
|
|
|
15
13
|
@staticmethod
|
|
16
14
|
def decode(escaped_hex: str) -> str:
|
|
17
|
-
"""
|
|
18
|
-
Kaçış dizileri içeren bir hex stringini UTF-8 formatındaki stringe dönüştürür.
|
|
19
|
-
"""
|
|
15
|
+
"""Kaçış dizileri içeren bir hex stringini UTF-8 formatındaki stringe dönüştürür."""
|
|
20
16
|
hex_string = escaped_hex.replace("\\x", "")
|
|
21
17
|
byte_data = bytes.fromhex(hex_string)
|
|
22
18
|
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# ! Bu araç @keyiflerolsun tarafından | @KekikAkademi için yazılmıştır.
|
|
2
|
+
|
|
3
|
+
import base64
|
|
4
|
+
|
|
5
|
+
class StringCodec:
|
|
6
|
+
"""
|
|
7
|
+
Base64 ve ROT13 kodlama/çözme işlemleri için bir sınıf.
|
|
8
|
+
"""
|
|
9
|
+
|
|
10
|
+
@staticmethod
|
|
11
|
+
def atob(encoded_string: str) -> str:
|
|
12
|
+
"""Base64 kodlu bir stringi çözer ve UTF-8 string olarak döndürür."""
|
|
13
|
+
return base64.b64decode(encoded_string).decode("utf-8")
|
|
14
|
+
|
|
15
|
+
@staticmethod
|
|
16
|
+
def btoa(plain_text: str) -> str:
|
|
17
|
+
"""Bir stringi Base64 formatında kodlar."""
|
|
18
|
+
return base64.b64encode(plain_text.encode("utf-8")).decode("utf-8")
|
|
19
|
+
|
|
20
|
+
@staticmethod
|
|
21
|
+
def rtt(input_string: str) -> str:
|
|
22
|
+
"""Verilen stringin ROT13 kodlamasını uygular veya çözer."""
|
|
23
|
+
def rot13_char(char):
|
|
24
|
+
if "a" <= char <= "z":
|
|
25
|
+
return chr((ord(char) - ord("a") + 13) % 26 + ord("a"))
|
|
26
|
+
elif "A" <= char <= "Z":
|
|
27
|
+
return chr((ord(char) - ord("A") + 13) % 26 + ord("A"))
|
|
28
|
+
return char
|
|
29
|
+
|
|
30
|
+
return "".join(rot13_char(char) for char in input_string)
|
|
31
|
+
|
|
32
|
+
@staticmethod
|
|
33
|
+
def decode(encoded_string: str) -> str:
|
|
34
|
+
"""Önce ROT13 uygular, ardından Base64 çözer."""
|
|
35
|
+
return StringCodec.atob(StringCodec.rtt(encoded_string))
|
|
36
|
+
|
|
37
|
+
@staticmethod
|
|
38
|
+
def encode(plain_text: str) -> str:
|
|
39
|
+
"""Önce Base64 kodlar, ardından ROT13 uygular."""
|
|
40
|
+
return StringCodec.rtt(StringCodec.btoa(plain_text))
|
|
@@ -33,10 +33,10 @@ Kekik.egg-info/entry_points.txt
|
|
|
33
33
|
Kekik.egg-info/requires.txt
|
|
34
34
|
Kekik.egg-info/top_level.txt
|
|
35
35
|
Kekik/Sifreleme/AESManager.py
|
|
36
|
-
Kekik/Sifreleme/AtobRtt.py
|
|
37
36
|
Kekik/Sifreleme/CryptoJS.py
|
|
38
37
|
Kekik/Sifreleme/HexCodec.py
|
|
39
38
|
Kekik/Sifreleme/Packer.py
|
|
39
|
+
Kekik/Sifreleme/StringCodec.py
|
|
40
40
|
Kekik/Sifreleme/__init__.py
|
|
41
41
|
Kekik/kisi_ver/__init__.py
|
|
42
42
|
Kekik/kisi_ver/biyografiler.py
|
|
@@ -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.3",
|
|
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"],
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
# ! Bu araç @keyiflerolsun tarafından | @KekikAkademi için yazılmıştır.
|
|
2
|
-
|
|
3
|
-
import base64
|
|
4
|
-
|
|
5
|
-
def atob(s:str) -> str:
|
|
6
|
-
return base64.b64decode(s).decode("utf-8")
|
|
7
|
-
|
|
8
|
-
def rtt(s:str) -> str:
|
|
9
|
-
def rot13_char(c):
|
|
10
|
-
if "a" <= c <= "z":
|
|
11
|
-
return chr((ord(c) - ord("a") + 13) % 26 + ord("a"))
|
|
12
|
-
elif "A" <= c <= "Z":
|
|
13
|
-
return chr((ord(c) - ord("A") + 13) % 26 + ord("A"))
|
|
14
|
-
return c
|
|
15
|
-
|
|
16
|
-
return "".join(rot13_char(c) for c in s)
|
|
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
|