Page 4 of 4

Posted: Sat Jan 21, 2006 12:04 am
by SFSxOI
Thanks netmaestro;

I'm gonna take a look at it and play around a bit, but to be honest i'm a little leary about using it because the help for it is kinda sparse, but oh...what the heck...after all what are human guinnea pigs for anyway :).

All in all I like the PBOSL library.

Any good examples for using this library to encrypt and de-crypt a file?

EDIT: Ok, tried it out using the PBOSL example on a small .exe i did for this purpose.

Code: Select all

Pwd.s   = "123456789012345678901234"
time1 = GetTickCount_()
DG_EnCryptFile ( "D:\pure basic\projects\cpt1\v3\cpt.exe", Pwd )
time2 = GetTickCount_()
MessageRequester("", Str(time2- time1 ),  0)
started up and seemd to do something then the message showed of '0'. The i tried to start up the .exe and the command prompt opened up and said:
"General failure reading drive A
Abort?"

and the file did not work. Did i do something wrong?

Posted: Mon Jan 23, 2006 9:10 am
by dige
@SFSxOI: The POSL crypt Lib is not suitably to protecting exe files in that
way. You have to write a smal exe - luncher, that ask for a password and then
decrypt the filecontent to a new file. Afterwards you can start the exe with
runprogram() ...

I'm sure, some of our codegurus are able, can do that without save the
content to a new file ;-)

Posted: Mon Jan 23, 2006 10:48 pm
by SFSxOI
dige,

Yep, i've discovered that. Your correct in your assesment, I don't want to have to go thru the launcher - write content to a new file thing. I want to be able to encrypt the file and then have it run and decrypt in memory, or even better yet have a file that you can encrypt, run it and have it function as normal but remain encrypted in memory while operating else what good is it to go to the trouble of encrypting to just have someone be able to get whats in the file by looking in memory (or maybe i'm looking at this wrong). Thank you very much for your response. :)

Posted: Sun Jun 22, 2008 2:55 pm
by DarkDragon
PBOSL update:
- compiled for 4.20 - updated the make batch files
- ExDatabase added.

Posted: Sun Jun 22, 2008 3:19 pm
by ts-soft
This is an old thread, here is the newer one:
http://www.purebasic.fr/english/viewtop ... 061#249061 :wink:

Posted: Sun Jun 29, 2008 1:22 pm
by SFSxOI
I'm assuming that the download from http://pbosl.purearea.net/index.php?site=Libs is the version compiled for 4.20 even tho the site still says 'PB 4.0:' ?

Posted: Sun Jun 29, 2008 2:45 pm
by ts-soft
Is for 4.20!