end2endzone / bin2cpp

bin2cpp: The easiest way to embed small files into a c++ executable. bin2cpp converts text or binary files to C++ files (*.h, *.cpp) for easy access within the code.
http://www.end2endzone.com/bin2cpp-the-easiest-way-to-embed-small-files-into-a-c-executable/
MIT License
81 stars 8 forks source link

Ultralig.ht Support #66

Open KaiH-0 opened 2 years ago

KaiH-0 commented 2 years ago

Hi, I am using Ultralig.ht to make a C++ application with html frontend and was trying to find a way to hide my html files from the customer. I think bin2cpp is a great project but I have no idea how I would even go about implementing it into Ultralig.ht.

Thanks in advance.

end2endzone commented 2 years ago

Hi. I am not familiar with Ultralig.ht and cannot be helpful. Bin2cpp is designed to be executed on the target platform as a console application. You might be able to use bin2cpp inside a Ultralig.ht web site if the platform allow execution of native executables. You could also wrap a Ultralig.ht project inside a bin2cpp executable to be able to deploy your project through a browser but the process will be similar to a normal "file download" and execute. Hope this is helping.

shabbywu commented 2 months ago

I prefer to use physfs + bin2cpp, here is my solution, mini browser(resource embeded)

bin2cpp embedded zip/7z to memory. physfs map zip/7z as virtual filesystem. And the data in memory is compressed, will be more harder to crack.