Daily Archives: February 25, 2019

Converting File to Variable — file2var

How many times have you faced scenarios where you need to compile an external file to a binary of a package for easy distribution? These scenarios can range from embedding malware to serving html files using a single binary/package.

 

Well now, I’ve developed a tool within my easyscript repository! It’s called file2var. Here’s file2var in action:

 

Basically file2var converts a file as a variable (currently support Golang only) so that it can be compiled or package within an application in its code.… Read the rest