I want to generate a list of the hex values of all 256 byte-combinations.
Basically, I want for example 'A' => '\x41'. I've only found modules capable of converting 'A' => '41', and this is not what I want.
How am I to solve this problem? Does anybody know an appropriate module or algorithm (as I'd like to avoid hardcoding 256 hexvalues...)?
'\x41'is equivalent to'A'(try it). Or do you want the string literalr'\x41'?