文件十六进制编辑软件HxD Hex Editor的使用

在编写自定义格式文件的读写程序,或分析一个二进制文件的内容时,需要查看文件的十六进制内容,这就需要用到文件十六进制内容显示与编辑软件。本人试用过4种这样的软件,试用过的4个软件分别是:

(1)WinHex,专门用于文件十六进制显示和编辑的软件,有评估版可用,正式版收费。下载地址 http://www.winhex.com/winhex/

(2)UltraEdit,这是个通用的文件编辑器,可以编辑文本文件。如果是二进制文件,就以十六进制显示。有免费试用版,正式版收费。下载地址 http://www.ultraedit.com/

(3)Notepad++,是一个开源的文本编辑器,要显示文件十六进制内容需要安装一个插件HEX-Editor。但是因为这个插件是很多年前发布的,只有32位版本,所以只能在32位版本的Notepad++里安装这个插件。下载地址 https://notepad-plus-plus.org/

(4)HxD Hex Editor,是一个免费软件,专门用于文件十六进制显示和编辑的,其功能比Notepad++的插件强,下载地址 https://mh-nexus.de/en/hxd/

所以,HxD Hex Editor是免费的,且功能强,用它就是最合适的了。

例如,上图是用PyQt5编写的一个读写文件的程序,向文件test.stream内连续写入界面上的这些数据。用HxD打开文件test.stream显示的内容见下图。

在HxD的右侧编辑器里还会显示所选择字节码的各种组合的数据,例如Int8, Int16, Int32等。例如,图中文件十六进制内容里选择了02和03两个地址的字节码,程序里往这个位置写入的是Int16整数-1522,在右侧编辑器里可以看到属性Int16就是-1522。

 

 

 

HTC用来制作金卡必须地工具 - Available in a portable and installable edition - Instant opening regardless of file-size (>4GB is no problem, if it fits on a disk/drive you can open it) - Files opened in HxD are shared liberally but safely with other applications - Fast searching: forward, backwards or from beginning - Replace function (fast even for millions of edits) - Disk-Editor: RAW reading and writing of disks and drives (WinNT and Win9x) - RAM-Editor: can read and write virtual memory of other processes - Data-folding for better overview in RAM-Editor - Splitting and joining files - Safe deletion of files (shredder) - File compare (simple version for now) - Inserting bytes or filling a selection with a pattern - Grouping of bytes - Only text or only hex mode - Exporting of data to source code (Pascal, C, Java, C#, VB.NET) or as formatted output (plain text, HTML, Richtext, TeX) or to hex formats Motorola S19 Records, Motorola S28 Records, Motorola S37 Records, 16 Bit Intel Hex, 20 Bit Intel Hex, 32 Bit Intel Hex - Checksum-Generator: Checksum-8, ..., Checksum-32, CRC-16, CRC-16 CCITT, CRC-32, Custom CRC, SHA-1, SHA-256, SHA-384, SHA-512, MD-2, MD-4, MD5 - Statistical view: Graphical representation of the character distribution. Helps to identify the data-type of a selection. - Support for ANSI, DOS/IBM-ASCII and EBCDIC charsets - Unlimited undo - Modified data is highlighted - Internet update checker - Ghost caret: displayed around the corresponding character/hex value on the inactive column, the caret is placed on the active column - Printing - Bookmarks: Ctrl+Shift+Number(0-9) sets a bookmark, Ctrl+Number(0-9) goes to a bookmark - Flicker free display and fast drawing
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值