I am a newbie, also in python, so please comment
I am using the key 0xFEDCBA9876543210
In hex a CSV file could possibly look like:
10,32,54,76,98,BA,DC,FE
However, I believe I have to use decimal:
16,50,84,118,152,186,220,254
Is printing least significant byte first correct?
To read the CSV file into numpy I do:
import numpy as np
knownkey=np.genfromtxt(“knownkey.csv”, dtype=‘uint8’, delimiter=",")
I can use the table now or save it in an NPY file:
np.save(“knownkey.npy”, knownkey)
I assume setting dtype to ‘uint8’ makes sure I get a compact table in memory.
print(knownkey) outputs:
array([ 16, 50, 84, 118, 152, 186, 220, 254], dtype=uint8)
All good so far?