I have a way to protect files from stolen by crackers or others, My Way Is EFIS (Embedding Files In Sources), with this way we can change our files in the codes and put it between codes (On Global Function or any section or use it as local!)
i create a program to parse file to Codes that usable between your codes, then in runtime you copy file on memory from codes or copy it in hard disk (i write some function for these jobs)
File Parser.exe
use this application (great GUI thanks reteset) for Parsing files to codes, How ?
in 'Table Name' Field enter your file name or a variable name no difference just you must know this name for use it on app (Note :this name follow provision of variable name (Not srart with numbers, ...))
in 'File To Parse' field you must enter addresss of file that you want parsed to codes.
in 'Save To' field you must enter addresss of file that you want parsed codes saved to it.
in the end this app create a file like below that you must include it in your app :
Codes Helper :Code:Test = {"8606185513116067142","2335244402573734501","7299525919160618305","8461225900329037677"} Test.Size = 36 Test.B1=103Test.B2=105Test.B3=110Test.B4=46 Test.Bytes = 4
Codes Helper are some function that help you back your files from those codes to memory or to a file and then use it
these functions are :
FileTable2Memory(File_Table, mem)
with this func you can copy your file from those codes to memory and use it with this way your file not created on hard disk.
first parameter is table name that before you choose it in above examp my table name is 'Test'
second parameter is a memory pointer that allocated with Test.Size bytes (size is important)
return nothing
for examp see this (i create apz of examp1, see attachments)
Code:Test ={"8606185513116067142","2335244402573734501","7299525919160618305","8461225900329037677"} Test.Size = 36 Test.B1=103Test.B2=105Test.B3=110Test.B4=46 Test.Bytes = 4 mem = Memory.Allocate(Test.Size) -- create memory with Test.Size FileTable2Memory(Test, mem) -- Copy file from code to memory Dialog.Message("", Memory.GetString(mem, -1, Ascii)) -- Print File bolt from memory Memory.Free(mem) -- Kill memory of file
Memory2File(Mem, File_Name)
with this func you can create your file from memory (that created from those codes) on your hard disk and then use it.
first parameter is memory pointer (that created from those codes)
second parameter is the filename on your hard disk, if you set it ':temp:' function generate a file random in your temp then return address of it.
return name of file if you set second parameter ':temp:'.
for examp see this (i create apz of examp2, see attachments)
Code:Test ={"8606185513116067142","2335244402573734501","7299525919160618305","8461225900329037677"} Test.Size = 36 Test.B1=103Test.B2=105Test.B3=110Test.B4=46 Test.Bytes = 4 mem = Memory.Allocate(Test.Size) -- create memory with Test.Size FileTable2Memory(Test, mem) -- Copy file from code to memory filename = Memory2File(mem, ":temp:") -- create file from memory to hard disk Dialog.Message("", TextFile.ReadToString(filename)) -- Print File from hard disk File.Delete(filename, false, false, false, nil) -- Delete File Memory.Free(mem) -- Kill memory of file
FileTable2File(File_Table, File_Name)
with this func you can create your file bolt from codes to file on hard disk and then use it.
first parameter is table name that before you choose it in above examp my table name is 'Test'
second parameter is the filename on your hard disk, if you set it ':temp:' function generate a file random in your temp then return address of it.
return name of file if you set second parameter ':temp:'.
for examp see this (i create apz of examp3, see attachments)
Code:Test ={"8606185513116067142","2335244402573734501","7299525919160618305","8461225900329037677"} Test.Size = 36 Test.B1=103Test.B2=105Test.B3=110Test.B4=46 Test.Bytes = 4 filename = FileTable2File(Test, ":temp:") -- create file bolt from codes to hard disk Dialog.Message("", TextFile.ReadToString(filename)) -- Print File from hard disk File.Delete(filename, false, false, false, nil) -- Delete File Memory.Free(mem) -- Kill memory of file
with this method (EFIS) you can increase your security of files and program and prevent from stealing your files, this is a new layer.
with this your program is portable you can send one page codes to your friends that include many files or you can post your codes that include files.
I work on it for improve it and any help and info is familiar.
please post any bug, any question, any suggestion or anything you know.
this Method use Memory Plugin This is important every time use the latest Version of Memory plugin.
i very work on it your reply create me happy.
Enjoy
beforehand thanks for your replys.
AMSWaves.


Reply With Quote

