Search found 340 matches

by marpon
May 02, 2019 18:00
Forum: Community Discussion
Topic: Challenge : Sfx encrypted file, to verify it's security level
Replies: 9
Views: 1395

Re: Challenge : Sfx encrypted file, to verify it's security level

I know uniextract, i've used it for several years... it use the archivers uncompress dll, or exe to uncompress files, it looks at the known signature of the compressed file to select the right tool to use. Do not expect it will work for the challenge file, my objective is not to spray the info but t...
by marpon
May 02, 2019 17:37
Forum: Community Discussion
Topic: Challenge : Sfx encrypted file, to verify it's security level
Replies: 9
Views: 1395

Re: Challenge : Sfx encrypted file, to verify it's security level

yes sfx is the designation you can see on rar or other archivers

SFX for self extraction file, it has to be an executable, with embedded data.
by marpon
May 02, 2019 16:49
Forum: Community Discussion
Topic: Challenge : Sfx encrypted file, to verify it's security level
Replies: 9
Views: 1395

Challenge : Sfx encrypted file, to verify it's security level

Hi I have been working on encrypt_decrypt features, and i've done an sfx creator for encrypted content. the objective is to transfert data to others with some level of security ( not as professionnal) Before using it, I am interrested to know how robust is it. As i've seen some topics on crypto subj...
by marpon
Apr 05, 2019 9:35
Forum: Projects
Topic: FB File2Bas Code Generator v1.00 build 2019-04-16 beta [Windows only]
Replies: 5
Views: 1036

Re: FB File2Bas Code Generator v0.99 beta [Windows only]

as on example, a code to embeed files just using incbin #Macro Macro_IncCommunEx(label , file , sectionName) dim label##_data as UByte Ptr dim label##_size as ULong #If __FB_DEBUG__ asm jmp .LT_END_OF_FILE_##label##_DEBUG_JMP #Else asm .section sectionName ' Switch to/Create the specified section #E...
by marpon
Apr 05, 2019 9:10
Forum: Projects
Topic: FB File2Bas Code Generator v1.00 build 2019-04-16 beta [Windows only]
Replies: 5
Views: 1036

Re: FB File2Bas Code Generator v0.99 beta [Windows only]

as in example a code to embeed files just using rcdata as simple as that #include once "windows.bi" 'compile with -x "D:\freebasic\samples\res_embeed.exe" -w pedantic -s console -v res_embeed.bas XXX_TEMP.RC > res_embeed.log 2>&1 'example of rc file named XXX_TEMP.RC /' //_BE...
by marpon
Apr 05, 2019 8:18
Forum: Projects
Topic: FB File2Bas Code Generator v1.00 build 2019-04-16 beta [Windows only]
Replies: 5
Views: 1036

Re: FB File2Bas Code Generator v0.99 beta [Windows only]

@UEZ nice to see, some usage of lzfx code yes, you could use also lzmat code, wich is better in compression ratio versus lzfx , and similar on speed decompression. but if you are interrested on compression have a look on my github place for compress https://github.com/marpon/Compression_tools you wi...
by marpon
Apr 05, 2019 7:30
Forum: Tips and Tricks
Topic: Simple lzmat compress/decompress without any dependency
Replies: 6
Views: 1238

Re: Simple lzmat compress/decompress without any dependency

@UEZ happy to see some interrest... I will reply more deeply on your posted project. @srvaldez i don't understand what's wrong. just use the function to push the compressed buffer to it it will be saved as compressed file ubyte2File(_COMPRESSED_FILE_,enc1 , i2) after if you want to decompress that c...
by marpon
Apr 04, 2019 16:44
Forum: Tips and Tricks
Topic: Simple lzmat compress/decompress without any dependency
Replies: 6
Views: 1238

Re: Simple lzmat compress/decompress without any dependency

@srvaldez yes it is no output to file , just buffers to compare thats enougth to verify the full compression/decompression process, but no problem, you can add that feature simply. take the buffer you want to save as file (compressed or uncompressed or both) and just use a function like this one to ...
by marpon
Apr 04, 2019 15:50
Forum: General
Topic: Need help on converting C code
Replies: 12
Views: 912

Re: Need help on converting C code

THANK YOU DLK, for your very good fbfrog. just finished convert a compress /decompress code from c, can see the post on Tips & Tricks After some cleaning on the c code as explained before, the for ... loop do not convert easily with fbfrog the --, ++ , multi steps expended... used fbfrog and onl...
by marpon
Apr 04, 2019 15:39
Forum: Tips and Tricks
Topic: Simple lzmat compress/decompress without any dependency
Replies: 6
Views: 1238

Simple lzmat compress/decompress without any dependency

Hi, again a new compress/decompress code, from c source public domain by Ilya Muravyov. got it under crush name in powturbo github converted and adapted to freebasic, gives a quite good compression ratio /speed, very fast on decompression and very light also. and only in freebasic code '' original c...
by marpon
Apr 03, 2019 14:33
Forum: General
Topic: Need help on converting C code
Replies: 12
Views: 912

Conclusion : Need help on converting C code

In fact for the ones who want convert c to freebasic, some interresting advice clean as much as you can on the c side, choose to preprocess the code or not ( you can replace defines by macros in fb) replace all the for loops , by while or do loops replace i++ by i +=1 in all part of your code try to...
by marpon
Apr 03, 2019 14:16
Forum: General
Topic: Need help on converting C code
Replies: 12
Views: 912

SOLVED REALLY : Need help on converting C code

@counting_pine thanks for your very good answer, on the mean time i've concluded as you , see here the macro : #macro sub_macro(m_resbits, m_bits , m_src) if (m_bits and &h7fffffff) <> 0 then m_resbits = m_bits m_bits = m_bits + m_bits else m_src += 4 m_resbits = *(cptr(Ulong ptr ,(m_src - 4))) ...
by marpon
Apr 02, 2019 14:21
Forum: General
Topic: Need help on converting C code
Replies: 12
Views: 912

SOLVED - Re: Need help on converting C code

Thank's both of you for your answer, on the mean time i think i got a good replacement code in c sub_macro( Ulong *presbits, Ulong *pbits , Ubyte **ppsrc0 ) { (*pbits) = (*pbits) & 0x7fffffff; if(*pbits) { *presbits = (*pbits); (*pbits) = (*pbits) + (*pbits); } else { (*ppsrc0) += 4; (*presbits)...
by marpon
Apr 02, 2019 7:25
Forum: General
Topic: Need help on converting C code
Replies: 12
Views: 912

Need help on converting C code

Hi I'm converting a c decompression code to freebasic, whith plenty of macros after preprocessing result, i've got many parts of code i do not understant , as the following if (!((bits=bits&0x7fffffff? (resbits=bits,bits+bits) : (src+=4,resbits=*((Ulong *)(src-4)),(resbits<<1)+1)),resbits>>31)) ...
by marpon
Mar 29, 2019 13:11
Forum: Libraries
Topic: win/linux static libs to compress /decompress as zlib
Replies: 5
Views: 1187

Re: win/linux static libs to compress /decompress as zlib

In my quest of very litle compression tools, a new one : aPLib v1.1.1 from Joergen Ibsen http://www.ibsensoftware.com very complete static libs /dll ... static libs easy to interface with freebasic win or linux in 32/64 bits not as efficient on compression ratio /speed as minz lib but very light lib...

Go to advanced search