Change hex i binary file, simple in python & .net but impossible in electron?


#1

Is it possible in some simple way to open a binary file <20 MB and find a specific hex string and change it and save to the file. A simple game patcher thats works on osx/win.

This is very easy in .net and python but impossible or really hard in electron?


#2

Electron relies on Node for its standard library. You may want to search StackOverflow for things tagged with “node.js” to help with questions like this. For example:


#3

Yep, in a browser you’d use a typed array but in Node you’d use a Buffer object. Buffers can easily convert between binary and hex.

https://nodejs.org/api/buffer.html