Gamestudio Links
Zorro Links
Newest Posts
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (AndrewAMD), 1,310 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 2 1 2
Re: [Demo] A Database plugin for 3dgs!! [Re: D3D] #93062
10/09/06 17:14
10/09/06 17:14
Joined: Apr 2005
Posts: 3,815
Finland
Inestical Offline
Rabbit Developer
Inestical  Offline
Rabbit Developer

Joined: Apr 2005
Posts: 3,815
Finland
I think it has to be reversable? I'm thinking about one, but it'd only be too simple.. well.. nobody is perfect.. I ain't implementing it but I can tell you how it works?


"Yesterday was once today's tomorrow."
Re: [Demo] A Database plugin for 3dgs!! [Re: Inestical] #93063
10/09/06 19:31
10/09/06 19:31
Joined: Mar 2005
Posts: 309
Germany, Bavaria
Sinthoras Offline OP
Senior Member
Sinthoras  Offline OP
Senior Member

Joined: Mar 2005
Posts: 309
Germany, Bavaria
MD5 is possible, I could implement it as a separate function. You can call it whenever you like to crypt a string.

As Inestical said - this method is not reversible.
@Inestical (and at all others): Whenever you've got an idea about improving something in the dll - just tell me!

Furthermore, I have written a short explanation for full version features > Link <.
Especially the new possibilities with the source code are very interesting.
I will release this version soon.

Regards
Sinthoras

PS: anyone had success with the demo version? I could upload a few examples, if you want them..

[EDIT] MD5 is implemented now (full version)! You just have to call
Code:
STRING* _md5(string) or
STRING* _md5File(filename)

and the hash is returned.

Last edited by Sinthoras; 10/09/06 20:17.
Re: [Demo] A Database plugin for 3dgs!! [Re: Sinthoras] #93064
10/10/06 08:13
10/10/06 08:13
Joined: Apr 2005
Posts: 3,815
Finland
Inestical Offline
Rabbit Developer
Inestical  Offline
Rabbit Developer

Joined: Apr 2005
Posts: 3,815
Finland
here is the basic algoritm for encrytping the password:

convert characters to integer
convert integers to hexadecimal
take the first character, add 2 to it and move it to a new array
take the third character, add 4 to it and move it to the other array
take the fifth character, add 6 to it and move it to the other array
..when reached to the end, there is still chars left:
take the first character, add 2 to it and move it to the other array
take the second character, add 5 to it and move it to the other array
take the third character, add 8 to it and move it to the other array

then reverse the new array and convert to string

I think it should keep the pass at least somehow undetectable

ps. you can also add some random integers to the end of the new array to make it bigger
ps2. characters can be 0-255 so if the number reaches to the 255, it should continue from 0


"Yesterday was once today's tomorrow."
Re: [Demo] A Database plugin for 3dgs!! [Re: Sinthoras] #93065
10/10/06 14:14
10/10/06 14:14
Joined: Apr 2006
Posts: 1,551
Netherlands
D3D Offline
Serious User
D3D  Offline
Serious User

Joined: Apr 2006
Posts: 1,551
Netherlands
Didn't have time to download the demo yet. But, i'm going to try now. My plan is to use MySQL for the database. However, for future projects the SpeedList plugin should be very useful too. Examples are always welcome

Dusty


smile
Re: [Demo] A Database plugin for 3dgs!! [Re: Inestical] #93066
10/10/06 14:24
10/10/06 14:24
Joined: Mar 2005
Posts: 309
Germany, Bavaria
Sinthoras Offline OP
Senior Member
Sinthoras  Offline OP
Senior Member

Joined: Mar 2005
Posts: 309
Germany, Bavaria
Thanks for posting it!
But there are still some things left to think about:
- if I implement exactly this version, everyone can write a reverse-data-dll and read out the string again (thats not your fault, its the same with all 'known' crypting code)
- the speed to convert / reverse the data is decreased heavily, means saving a file lasts about three times longer
- if I convert the new array to a string and there are some \0 characters in, the string stops at this point (assuming I'll take strcpy or strcat)

However, good idea to start with

@dusts:
thanks for trying it, please post your feedback here, if you like

Last edited by Sinthoras; 10/10/06 14:25.
Re: [Demo] A Database plugin for 3dgs!! [Re: Sinthoras] #93067
10/11/06 08:18
10/11/06 08:18
Joined: Apr 2005
Posts: 3,815
Finland
Inestical Offline
Rabbit Developer
Inestical  Offline
Rabbit Developer

Joined: Apr 2005
Posts: 3,815
Finland
sinthoras: of course, you won't use exact that, but it was just a suggestion afterall


"Yesterday was once today's tomorrow."
Re: [Demo] A Database plugin for 3dgs!! [Re: Inestical] #93068
10/11/06 17:46
10/11/06 17:46
Joined: Mar 2005
Posts: 309
Germany, Bavaria
Sinthoras Offline OP
Senior Member
Sinthoras  Offline OP
Senior Member

Joined: Mar 2005
Posts: 309
Germany, Bavaria
don't worry I will implement your encryption mode if I have the time.
At the moment, my Network.dll (working with this Database plugin!) has higher priority.

I wrote a small chat program demonstrating some of the Databases features (demo)
Chat program

It is not a 'real' chat, you only write text and it is drawn on the screen.
The difference to normal GameStudio-Projects:
your text remains on the screen, also if you restart the engine.

[additional example]
TestDummy wrote a plugin, the eLL alpha 0.01 dll. (also shown in this forum)
You can organize your entities in the Database in the same way as it is done there, you even can store
additional information about them in the next cells.


Last edited by Sinthoras; 10/11/06 19:52.
Page 2 of 2 1 2

Moderated by  adoado, checkbutton, mk_1, Perro 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1