Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History
22 lines (22 loc) · 829 Bytes

File metadata and controls

22 lines (22 loc) · 829 Bytes
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
def raw(data_bytes):
return f"{data_bytes}"[2:-1]
def ascii(data_bytes):
try:
data_str = data_bytes.decode('utf-8') #read the bytes and convert from binary array to ASCII
data_str=data_str.replace('\b', "\\b")
data_str=data_str.replace('\t', "\\t")
data_str=data_str.replace('\n', "\\n\n")
data_str=data_str.replace('\f', "\\f")
data_str=data_str.replace('\r', "\\r")
except UnicodeDecodeError as e:
print (e)
data_str=raw(data_bytes)
return data_str
def hex(data_bytes):
data_str=' '.join(format(x, '02X') for x in data_bytes)
data_str=data_str.replace('0A', "0A\n")
return data_str
def dec(data_bytes):
data_str=' '.join(format(x, '3') for x in data_bytes)
data_str=data_str.replace(' 10', " 10\n")
return data_str
Morty Proxy This is a proxified and sanitized view of the page, visit original site.