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.
Files changed (46) hide show
  1. {kekik-1.5.1 → kekik-1.5.2}/Kekik/Sifreleme/CryptoJS.py +8 -2
  2. {kekik-1.5.1 → kekik-1.5.2}/Kekik.egg-info/PKG-INFO +1 -1
  3. {kekik-1.5.1 → kekik-1.5.2}/PKG-INFO +1 -1
  4. {kekik-1.5.1 → kekik-1.5.2}/setup.py +1 -1
  5. {kekik-1.5.1 → kekik-1.5.2}/Kekik/BIST.py +0 -0
  6. {kekik-1.5.1 → kekik-1.5.2}/Kekik/Domain2IP.py +0 -0
  7. {kekik-1.5.1 → kekik-1.5.2}/Kekik/Nesne.py +0 -0
  8. {kekik-1.5.1 → kekik-1.5.2}/Kekik/Sifreleme/AESManager.py +0 -0
  9. {kekik-1.5.1 → kekik-1.5.2}/Kekik/Sifreleme/AtobRtt.py +0 -0
  10. {kekik-1.5.1 → kekik-1.5.2}/Kekik/Sifreleme/HexCodec.py +0 -0
  11. {kekik-1.5.1 → kekik-1.5.2}/Kekik/Sifreleme/Packer.py +0 -0
  12. {kekik-1.5.1 → kekik-1.5.2}/Kekik/Sifreleme/__init__.py +0 -0
  13. {kekik-1.5.1 → kekik-1.5.2}/Kekik/__init__.py +0 -0
  14. {kekik-1.5.1 → kekik-1.5.2}/Kekik/cli.py +0 -0
  15. {kekik-1.5.1 → kekik-1.5.2}/Kekik/csv2dict.py +0 -0
  16. {kekik-1.5.1 → kekik-1.5.2}/Kekik/dict2csv.py +0 -0
  17. {kekik-1.5.1 → kekik-1.5.2}/Kekik/dict2json.py +0 -0
  18. {kekik-1.5.1 → kekik-1.5.2}/Kekik/dosya2set.py +0 -0
  19. {kekik-1.5.1 → kekik-1.5.2}/Kekik/dosya_indir.py +0 -0
  20. {kekik-1.5.1 → kekik-1.5.2}/Kekik/hwid_kontrol.py +0 -0
  21. {kekik-1.5.1 → kekik-1.5.2}/Kekik/kisi_ver/__init__.py +0 -0
  22. {kekik-1.5.1 → kekik-1.5.2}/Kekik/kisi_ver/biyografiler.py +0 -0
  23. {kekik-1.5.1 → kekik-1.5.2}/Kekik/kisi_ver/isimler.py +0 -0
  24. {kekik-1.5.1 → kekik-1.5.2}/Kekik/kisi_ver/soyisimler.py +0 -0
  25. {kekik-1.5.1 → kekik-1.5.2}/Kekik/link_islemleri.py +0 -0
  26. {kekik-1.5.1 → kekik-1.5.2}/Kekik/list2html.py +0 -0
  27. {kekik-1.5.1 → kekik-1.5.2}/Kekik/liste_fetis.py +0 -0
  28. {kekik-1.5.1 → kekik-1.5.2}/Kekik/mail_gonder.py +0 -0
  29. {kekik-1.5.1 → kekik-1.5.2}/Kekik/okunabilir_byte.py +0 -0
  30. {kekik-1.5.1 → kekik-1.5.2}/Kekik/proxy_ver.py +0 -0
  31. {kekik-1.5.1 → kekik-1.5.2}/Kekik/qr_ver.py +0 -0
  32. {kekik-1.5.1 → kekik-1.5.2}/Kekik/ses_fetis.py +0 -0
  33. {kekik-1.5.1 → kekik-1.5.2}/Kekik/slugify.py +0 -0
  34. {kekik-1.5.1 → kekik-1.5.2}/Kekik/terminal_baslik.py +0 -0
  35. {kekik-1.5.1 → kekik-1.5.2}/Kekik/txt_fetis.py +0 -0
  36. {kekik-1.5.1 → kekik-1.5.2}/Kekik/unicode_tr.py +0 -0
  37. {kekik-1.5.1 → kekik-1.5.2}/Kekik/zaman_donustur.py +0 -0
  38. {kekik-1.5.1 → kekik-1.5.2}/Kekik.egg-info/SOURCES.txt +0 -0
  39. {kekik-1.5.1 → kekik-1.5.2}/Kekik.egg-info/dependency_links.txt +0 -0
  40. {kekik-1.5.1 → kekik-1.5.2}/Kekik.egg-info/entry_points.txt +0 -0
  41. {kekik-1.5.1 → kekik-1.5.2}/Kekik.egg-info/requires.txt +0 -0
  42. {kekik-1.5.1 → kekik-1.5.2}/Kekik.egg-info/top_level.txt +0 -0
  43. {kekik-1.5.1 → kekik-1.5.2}/LICENSE +0 -0
  44. {kekik-1.5.1 → kekik-1.5.2}/MANIFEST.in +0 -0
  45. {kekik-1.5.1 → kekik-1.5.2}/README.md +0 -0
  46. {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
- AES-256 encryption and decryption with key derivation from a password using a KDF (Key Derivation Function).
10
- Conforms to CryptoJS AES method.
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)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: Kekik
3
- Version: 1.5.1
3
+ Version: 1.5.2
4
4
  Summary: İşlerimizi kolaylaştıracak fonksiyonların el altında durduğu kütüphane..
5
5
  Home-page: https://github.com/keyiflerolsun/Kekik
6
6
  Author: keyiflerolsun
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: Kekik
3
- Version: 1.5.1
3
+ Version: 1.5.2
4
4
  Summary: İşlerimizi kolaylaştıracak fonksiyonların el altında durduğu kütüphane..
5
5
  Home-page: https://github.com/keyiflerolsun/Kekik
6
6
  Author: keyiflerolsun
@@ -6,7 +6,7 @@ from io import open
6
6
  setup(
7
7
  # ? Genel Bilgiler
8
8
  name = "Kekik",
9
- version = "1.5.1",
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