Hex Viewer in Python (viewing binary files)

Поделиться
HTML-код
  • Опубликовано: 3 окт 2024
  • Hex Viewer in Python (viewing binary files) -
    This video will walk you through all the code you need to write your own program to view the contents of binary files. The format is similar to what you would see if you download a Hex Editor.

Комментарии • 22

  • @RetroEcoChicken
    @RetroEcoChicken Год назад +2

    thank you, finally a tutorial that explains and is also not SUPER outdated.

  • @mrprezident0
    @mrprezident0 Год назад +1

    Hey Heather! I just searched for "python hex editor" and this was the first thing that came up! Very cool. I didn't even know you were a computer science teacher.

    • @PainlessProgramming
      @PainlessProgramming  11 месяцев назад +1

      it's a small world! Thanks for checking out my channel. Happy Juggling.

  • @brewhog
    @brewhog 2 года назад +2

    What a wonderfully simple, yet effective video. Thank you so much! I love that you did this on the command line so that the logic could basically be applied to any framework and/or language. Thank you!

  • @SquirrelTheorist
    @SquirrelTheorist 2 года назад +2

    Wow! This is so interesting! I didn't realize I could make a hex editor that quickly in python. Thank you!

  • @peter-william
    @peter-william 2 года назад +1

    you're a lifesaver, thank you

  • @robertbatista50
    @robertbatista50 2 года назад

    This video should have more 👍. I’m new to Python programming and I am going to use this for the interfacing world of Arduino, rPi and RS-232/422/485 data capture.

  • @JohannesDavidsen2024
    @JohannesDavidsen2024 3 месяца назад

    Can python script use this as sector writer ? As hard drive manipulation it would be helpful if this can be used as output writer into hard drive sector 😅

  • @hamzah274
    @hamzah274 Год назад

    I have a question

  • @bejoapp
    @bejoapp 2 года назад

    Can we convert the hex code we received from png back to png from hex code?

    • @PainlessProgramming
      @PainlessProgramming  2 года назад +1

      Yes. It would be possible to read the file, change something (ex. change colors of some pixels), and then write to an output file. When writing back to a file, you would open it for 'wb' and select a file name with a .png extension at the end so programs that can open a png will recognize it as an image.

    • @bejoapp
      @bejoapp 2 года назад

      @@PainlessProgramming can you make a video about it

    • @PainlessProgramming
      @PainlessProgramming  2 года назад +2

      @@bejoapp This is a video on how to write bytes to a file. ruclips.net/video/SYsADSPHTnA/видео.html It may not exactly be what you are looking for because you mentioned specifically editing image files. With the image files, there is metadata and the image's own format. Using a library especially made for image processing would be very useful so you don't accidentally overwrite the wrong part of the image file. Plus there are functions to do standard image processing features. I have heard good things about Pillow module. Hope that answers your question.

    • @bejoapp
      @bejoapp 2 года назад +1

      @@PainlessProgramming Thank you for your video, I wish you continued success :)))

  • @matoxetu
    @matoxetu Год назад

    ty

  • @techatival
    @techatival Год назад

    bytes is a built in global python function. Never overwrite a built in function like this: bytes=0

  • @knodesec
    @knodesec 6 месяцев назад

    Python is really slow for this simple task 😅