Nerd For Tech
Published in

Nerd For Tech

Write Up CTFlearn — Character Encoding

Photo by Olav Ahrens Røtne on Unsplash
  • In first line, the code will import a module named codecs
  • In third line, the strange number is saved into variable named hexadecimal
  • In fourth line, we combine the hexadecimal into one string format and saved it into variable named hexs. Because I was lazy to remove the space one by one, I prefer using join and split function.
  • In fifth line, we decode the hexs into string. As you can see, it will call the codecs function named decode that takes two variables.
  • In last line, we print out the output

The more you stick with something, the more you will understand it in the first sight ~ @handhikayp

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store