Fix bytes_to_hex
This commit is contained in:
1 parent
3e905b97ba
commit
47fb7ee832
1 file changed
+1
-1
@@ -21,7 +21,7 @@ def bytes_to_string(data):
|
||||
|
||||
def bytes_to_hex(data, chunkify = False):
|
||||
output = data.hex().upper()
|
||||
return " ".join((string[0+i:2+i] for i in range(0, len(string), 2))) if chunkify else output
|
||||
return " ".join((output[0+i:2+i] for i in range(0, len(output), 2))) if chunkify else output
|
||||
|
||||
def bytes_to_int(data):
|
||||
return int.from_bytes(data, 'little')
|
||||
|
||||
Reference in new issue
Block a user