I have a hex string a = 54776f204f6e65204e696e652054776f
And I want it in the form of a matrix like this:
s = [[54, 4f, 4e, 20],
[77, 6e, 69, 54],
[6f, 65, 6e, 77],
[20, 20, 65, 6f]]
How do I do it?
For more clarification: I am writing a program for AES encryption and decryption. And this is the 1st part where the plaintext is converted to hexadecimal and then to a state (4x4 matrix).