I am trying to convert an integer. E.g 3063294273, to a 64-bit big endian encoded byte representation.
So for example if I have a value = 1 my output should be
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01
What would be the best approach to do this in python?
Edit: I saw the other question provided in Convert a Python int into a big-endian string of bytes. But in the other question, the author was not asking for a specific size of the output. Which is important for my problem.