Kevin Chung
  • Home
  • Github
  • Twitter
Sign in Subscribe

tips

A collection of 1 post
python

Encoding Non-Printable Bytes in Python 3

TL;DR bytes -> str: In []: b'\x90\x90\x90\x90'.decode('latin-1') Out[]: '\x90\x90\x90\x90' str -> bytes: In []: '\x90\x90\x90\x90'.encode('latin-1') Out[]: b'\x90\x90\x90\x90' But Why Tho Sometimes when you're programming or you're playing CTFs [https://majorleaguecyber.org/
Dec 4, 2018 2 min read
Page 1 of 1
Kevin Chung © 2026
Powered by Ghost