Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
Indexed
MCP
copy
Index your code
hub
/
github.com/secdev/scapy
/ bytes_hex
Function
bytes_hex
scapy/compat.py:159–162 ·
view source on GitHub ↗
Hexify a str or a bytes object
(x)
Source
from the content-addressed store, hash-verified
157
158
159
def
bytes_hex(x):
160
# type: (AnyStr) -> bytes
161
""
"Hexify a str or a bytes object"
""
162
return
binascii.b2a_hex(bytes_encode(x))
163
164
165
def
hex_bytes(x):
Callers
13
_inet6_ntop
Function · 0.90
i2repr
Method · 0.90
i2repr
Method · 0.90
i2repr
Method · 0.90
_guess_alarm_payload
Function · 0.90
_guess_block_class
Function · 0.90
_getLogonInformation
Method · 0.90
_getServerChecksum
Method · 0.90
_getKDCChecksum
Method · 0.90
_getTicketChecksum
Method · 0.90
_getExtendedKDCChecksum
Method · 0.90
edit_ticket
Method · 0.90
Calls
1
bytes_encode
Function · 0.85
Tested by
no test coverage detected