Hello, dear friend, you can consult us at any time if you have any questions, add WeChat: daixieit



All of these Python questions are related to one major Python application of implementing Cybersecurity Algorithm.   I divide AES algorithm into a couple steps for you to program in an easier approach.

 

1.  Encode a Python to refer to ASCII table (To create a data set only for A-Z) to translate alphabetic letters (A-Z) into their ASCII code.

 

2. Encode a Python to perform shift left of an existing one-dim array for example:

(20, 46, 75, 67) -> (46, 75, 67, 20)

 

3. Create a S-box data set, then perform Byte-Substitution for example using Python:

 (20, 46, 75, 67) -> (B7, 5A, 9D, 85)

 

4. Encode a Python to perform XOR operation (odd number of “1” -> 1, even number including 0 of “1” -> 0) for 2 arrays, for example:

 

 

5. Use Python to perform 2 4x4 matrix’s XOR operation on each element for example:

 

6. Encode a Python to perform the operation of “shift Row” step on a 4x4 matrix, for example:

 

 

7. Encode a Python to perform the convert of hex code into binary code, for example:

63 -> 01100011

 

8. Encode a Python to perform the “Add Round-key” to a 4x4 State Matrix, for example:

State Matrix:

 

 

Round-Key No. 0 Matrix: