十六进制编辑器是用于编辑单个字节数据的软件应用程序,主要由程序员或系统管理员使用。
常规文本编辑器和十六进制编辑器之间的区别在于常规编辑器表示文件的逻辑内容,而十六进制编辑器表示文件的物理内容。十六进制编辑器可以让你以十六进制的形式查看或编辑文件的二进制数据,并用较为友好的界面来编辑二进制数据。对于需要处理二进制数据的用户,它非常受欢迎,例如使用十六进制编辑器可以更改游戏中的部分设置。
常用的十六进制编辑器有 Bless Hex Editor、GNOME Hex Editor、Okteta 等。和大多数编辑器一样,人们对于十六进制编辑器的要求包括功能强大、可定制性、界面美观。GitHub 上有一款开源的,名叫 ImHex 的十六进制编辑器,star 数量高达21.9k,Github地址:https://github.com/WerWolv/ImHex。
项目作者在 readme 文件中首先介绍了 ImHex 编辑器实现的功能特性。
- 十六进制视图 - Bytes 
- Hex string 
- C, C++, C#, Rust, Python, Java & JavaScript 数组 
- ASCII-Art 十六进制视图 
- HTML 自包含 div 
- Byte patching 
- Patch management 
- Copy bytes as feature 
- String and hex search 
- Colorful highlighting 
- Goto from start, end and current cursor position 
 
- Custom C++-like pattern language for parsing highlighting a file's content - Automatic loading based on MIME type 
- arrays, pointers, structs, unions, enums, bitfields, namespaces, little and big endian support, conditionals and much more! 
- Useful error messages, syntax highlighting and error marking 
 
- Doesn't burn out your retinas when used in late-night sessions - Dark mode by default, but a light mode is available as well 
 
- Data importing - Base64 files 
- IPS and IPS32 patches 
 
- Data exporting - IPS and IPS32 patches 
 
- Data inspector allowing interpretation of data as many different types (little and big endian) 
- Huge file support with fast and efficient loading 
- String search - Copying of strings 
- Copying of demangled strings 
 
- File hashing support - CRC16 and CRC32 with custom initial values and polynomials 
- MD4, MD5 
- SHA-1, SHA-224, SHA-256, SHA-384, SHA-512 
 
- Disassembler supporting many architectures (frontend for Capstone) - ARM32 (ARM, Thumb, Cortex-M, AArch32) 
- ARM64 
- MIPS (MIPS32, MIPS64, MIPS32R6, Micro) 
- x86 (16-bit, 32-bit, 64-bit) 
- PowerPC (32-bit, 64-bit) 
- SPARC 
- IBM SystemZ 
- xCORE 
- M68K 
- TMS320C64X 
- M680X 
- Ethereum 
- RISC-V 
- WebAssembly 
- MOS65XX 
- Berkeley Packet Filter 
 
- Bookmarks - Region highlighting 
- Comments 
 
- Data Analyzer - File magic-based file parser and MIME type database 
- Byte distribution graph 
- Entropy graph 
- Highest and average entropy 
- Encrypted / Compressed file detection 
 
- Built-in Content Store - Download all files found in the database directly from within ImHex 
 
- Yara Rules support - Quickly scan a file for vulnerabilities with official yara rules 
 
- Helpful tools - File splitter 
- File combiner 
- File shredder 
- Itanium and MSVC demangler 
- ASCII table 
- Regex replacer 
- Mathematical expression evaluator (Calculator) 
- Hexadecimal Color picker 
- Base converter 
- UNIX Permissions calculator 
- Anonfiles File upload tool 
- Wikipedia term definition finder 
- File utilities 
 
- 界面美观 
每款编辑器都有自己的风格,越来越多的开发者青睐于黑色背景、彩色高亮显示的界面风格,ImHex 就是如此:

