Source code generator for binary files
BinaryToSourceCode is a free development program for desktops created by developer Noriyuki Higa. With it, users will be able to generate source code for binary files using a simple and intuitive user interface. The code can be set either in Swift or C++ programming languages.
Once BinaryToSourceCode has generated the desired source code, it can then be used with text editors like Notepad++ to make changes or add and remove lines as needed. An option to embed files as hex code is also available to prevent any changes or modifications.
How do I use BinaryToSourceCode?
Source code is an essential building block of any computer program. To a developer, it is the rawest form of software before its compiled into a binary file. In the open-source coding community, it’s common practice to put out the source code together with a program for others to see and possibly tweak. However, that won’t always be the case for every release, and you’ll be left using a decompiler at best.
Here then comes BinaryToSourceCode, a source code generator that can help you with just this very problem. Load up your file and choose which programming language (Swift or C++) you want to output it to. You can then set bytes per row anywhere from 4 to 64 as you need. Additionally, you can determine byte values from 0 to 255 depending on the complexity of what you’re coding.
Once you’re satisfied with the settings, you can then proceed to making and saving your code. A couple of things to note here before you start. BinaryToSourceCode is primarily meant to be used for macOS app development only. Also, while on the subject, it is only compatible with Catalina and later versions of the operating system.
A handy tool for any developer
If you’re a developer, chances are, you’ve found yourself in a situation where you need to decompile a binary file to make changes or add a new line. In those cases, BinaryToSourceCode can help you out. It’s simple to use, can generate to either Swift or C++, and you can even set byte allocation and values. Overall, a great tool to have around.