hex ke string python
>>> bytes.fromhex('HexValue').decode('utf-8')
'string'
>>> bytes.fromhex('7368616b6564').decode('utf-8')
'shaked'
Wide-eyed Wasp
>>> bytes.fromhex('HexValue').decode('utf-8')
'string'
>>> bytes.fromhex('7368616b6564').decode('utf-8')
'shaked'
hexadecimal_string = "AB"
byte_array = bytearray.fromhex(hexadecimal_string)
print(byte_array)
>>> bytes.fromhex('deadbeef')
b'\xde\xad\xbe\xef'
>>> b'\xde\xad\xbe\xef'.hex()
'deadbeef'