des-PurePy 1.0.6__tar.gz → 1.0.7__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: des_PurePy
3
- Version: 1.0.6
3
+ Version: 1.0.7
4
4
  Summary: A pure python implementation of DES
5
5
  Project-URL: Homepage, https://github.com/Perez-Herrera-Luna/DES-Python
6
6
  Author-email: Luna Perez-Herrera <lunaperezherrer@gmail.com>
@@ -28,26 +28,18 @@ Install using your Python package manager of choice:
28
28
  pip install des_Py
29
29
  ```
30
30
 
31
- ```
32
- Plaintext: 0x0123456789abcdef
33
- Key: 0x133457799bbcdff1
34
- Ciphertext: 0x85e813540f0ab405
35
- Decrypted text: 0x0123456789abcdef
36
- ```
37
-
38
31
  ## Usage
39
-
40
- ### 1. DES
41
- Define a `DES` object while passing in your key. Key should be a hex string representing an 8 byte hexadecimal number.
32
+ ### Encrypting Hex Strings
33
+ Define a `DES` object while passing in your key. The key can be a hex string or a bytes object.
42
34
  ```python
43
35
  import des_Py
44
36
  des = des_Py.DES("0x133457799bbcdff1")
45
37
  ```
46
- You can encrypt by calling `encrypt()` and passing in a hex string representing an 8 byte hexadecimal number
38
+ You can encrypt by calling `encrypt()` and passing in a hex string or bytes object.
47
39
  ```python
48
- des.encrypt("0x0123456789abcdef") # -> "0x85e813540f0ab405"
40
+ des.encrypt("0x0123456789abcdef") # -> "0x85e813540f0ab405fdf2e174492922f8"
49
41
  ```
50
- You can simarly decrypt by calling `decrypt()` and passing in a hex string to decrypt
42
+ You can simarly decrypt by calling `decrypt()` and passing in a hex string or bytes object.
51
43
  ```python
52
- des.decrypt("0x85e813540f0ab405") # -> "0x0123456789abcdef"
44
+ des.decrypt("0x85e813540f0ab405fdf2e174492922f8") # -> "0x0123456789abcdef"
53
45
  ```
@@ -1,40 +1,32 @@
1
- # DES-Python
2
-
3
- ![made-with-python](https://img.shields.io/badge/Made%20with-Python%203-1f425f.svg)
4
- [![license: AGPL-3.0](https://img.shields.io/github/license/Perez-Herrera-Luna/DES-Python.svg)](https://github.com/Perez-Herrera-Luna/DES-Python/blob/main/LICENSE)
5
- [![DES-Python](https://github.com/Perez-Herrera-Luna/DES-Python/actions/workflows/python-app.yml/badge.svg)](https://github.com/Perez-Herrera-Luna/DES-Python/actions/workflows/python-app.yml)
6
-
7
- Data Encryption Standard (DES) implemented in pure Python
8
-
9
- ![Demo](https://github.com/user-attachments/assets/aaa905df-d924-4d52-80f4-b06390c1b523)
10
-
11
- ## Installation
12
-
13
- Install using your Python package manager of choice:
14
- ```bash
15
- pip install des_Py
16
- ```
17
-
18
- ```
19
- Plaintext: 0x0123456789abcdef
20
- Key: 0x133457799bbcdff1
21
- Ciphertext: 0x85e813540f0ab405
22
- Decrypted text: 0x0123456789abcdef
23
- ```
24
-
25
- ## Usage
26
-
27
- ### 1. DES
28
- Define a `DES` object while passing in your key. Key should be a hex string representing an 8 byte hexadecimal number.
29
- ```python
30
- import des_Py
31
- des = des_Py.DES("0x133457799bbcdff1")
32
- ```
33
- You can encrypt by calling `encrypt()` and passing in a hex string representing an 8 byte hexadecimal number
34
- ```python
35
- des.encrypt("0x0123456789abcdef") # -> "0x85e813540f0ab405"
36
- ```
37
- You can simarly decrypt by calling `decrypt()` and passing in a hex string to decrypt
38
- ```python
39
- des.decrypt("0x85e813540f0ab405") # -> "0x0123456789abcdef"
40
- ```
1
+ # DES-Python
2
+
3
+ ![made-with-python](https://img.shields.io/badge/Made%20with-Python%203-1f425f.svg)
4
+ [![license: AGPL-3.0](https://img.shields.io/github/license/Perez-Herrera-Luna/DES-Python.svg)](https://github.com/Perez-Herrera-Luna/DES-Python/blob/main/LICENSE)
5
+ [![DES-Python](https://github.com/Perez-Herrera-Luna/DES-Python/actions/workflows/python-app.yml/badge.svg)](https://github.com/Perez-Herrera-Luna/DES-Python/actions/workflows/python-app.yml)
6
+
7
+ Data Encryption Standard (DES) implemented in pure Python
8
+
9
+ ![Demo](https://github.com/user-attachments/assets/aaa905df-d924-4d52-80f4-b06390c1b523)
10
+
11
+ ## Installation
12
+
13
+ Install using your Python package manager of choice:
14
+ ```bash
15
+ pip install des_Py
16
+ ```
17
+
18
+ ## Usage
19
+ ### Encrypting Hex Strings
20
+ Define a `DES` object while passing in your key. The key can be a hex string or a bytes object.
21
+ ```python
22
+ import des_Py
23
+ des = des_Py.DES("0x133457799bbcdff1")
24
+ ```
25
+ You can encrypt by calling `encrypt()` and passing in a hex string or bytes object.
26
+ ```python
27
+ des.encrypt("0x0123456789abcdef") # -> "0x85e813540f0ab405fdf2e174492922f8"
28
+ ```
29
+ You can simarly decrypt by calling `decrypt()` and passing in a hex string or bytes object.
30
+ ```python
31
+ des.decrypt("0x85e813540f0ab405fdf2e174492922f8") # -> "0x0123456789abcdef"
32
+ ```
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "des_PurePy"
3
- version = "1.0.6"
3
+ version = "1.0.7"
4
4
  authors = [
5
5
  { name="Luna Perez-Herrera", email="lunaperezherrer@gmail.com" },
6
6
  ]
File without changes
File without changes
File without changes