I created a file with this sequence using C#
00 c3 2b 0b d3 38 0f 14 49 13 55 59 17 96 69 1b d7 f1 00
When viewing it with hex editor I get
00 ce 93 2b 0b ce a3 38 0f 14 49 13 55 59 17 c2 96 69 1b ce a7 cf 81 00
possibly related to
http://sourceforge.net/p/npp-plugins/bugs/188/
Notepad++ V. 6.8.6
Hex Editor V. 0.9.5
I've seen this as well, looking at SHA256 hashes at the end of binary files.
Ascii hex of the sha2-256 is:
e98dcfefc5cf6183702a85d17a3351867cbd627844569c02972ba3637a7305cc
The binary representation should be 32 bytes, and shows up in Notepad++'s main view as 32 characters:
This shows up in the hex editor as 50 bytes. Not sure if Notepad++ is adjusting the characters intoa 16-bit (or larger) character set before the hex editor is run, but this is a real bug.
Work around for me is:
https://portableapps.com/apps/development/frhed_portable
I'm getting the same bug too. The source of it seems to be the "Autodetect character encoding" feature in Notepad++ that seems to convert the original bytes to another format (this doesn't change the actual file), and when they're displayed in the Hex Editor, they're displayed wrong.
I got the "Autodetect character encoding" idea from a github post about a similar issue here: https://github.com/notepad-plus-plus/notepad-plus-plus/issues/3697 . It seems that particular post wasn't reported on this bug listing yet, so I thought to make this comment to include it here.
I also included my own instructions below on reproducing the bug. My Notepad++ version is newer, but the bug is still the same. I used HxD to make my source file. How you do it shouldn't matter, the bytes themselves are more important.
Notepad++ 7.5.4
Hex-Editor v0.9.5
Use HxD to create a "test.dat" file containing these bytes:
00 C3 2B 0B D3 38 0F 14 49 13 55 59 17 96 69 1B D7 F1 00
Open Notepad++. Close all files (not really important, just for repeatability).
In Settings -> Preferences -> MISC., check Autodetect character encoding. Then click "Close".
Open your "test.dat" file. You should see an encoding scheme in bottom right corner show as "ISO 8859-7".
Open Hex Editor. The bytes shown are:
00 ce 93 2b 0b ce a3 38 0f 14 49 13 55 59 17 c2 96 69 1b ce a7 cf 81 00
Last edit: Nicolas Obias 2018-02-05