PBOSL 1.0 (OpenSource Library-Collection)

Developed or developing a new product in PureBasic? Tell the world about it.
SFSxOI
Addict
Addict
Posts: 2970
Joined: Sat Dec 31, 2005 5:24 pm
Location: Where ya would never look.....

Post 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?
dige
Addict
Addict
Posts: 1406
Joined: Wed Apr 30, 2003 8:15 am
Location: Germany
Contact:

Post 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 ;-)
SFSxOI
Addict
Addict
Posts: 2970
Joined: Sat Dec 31, 2005 5:24 pm
Location: Where ya would never look.....

Post 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. :)
DarkDragon
Addict
Addict
Posts: 2345
Joined: Mon Jun 02, 2003 9:16 am
Location: Germany
Contact:

Post by DarkDragon »

PBOSL update:
- compiled for 4.20 - updated the make batch files
- ExDatabase added.
bye,
Daniel
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Post by ts-soft »

This is an old thread, here is the newer one:
http://www.purebasic.fr/english/viewtop ... 061#249061 :wink:
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image
SFSxOI
Addict
Addict
Posts: 2970
Joined: Sat Dec 31, 2005 5:24 pm
Location: Where ya would never look.....

Post 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:' ?
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Post by ts-soft »

Is for 4.20!
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image
Post Reply