Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Code Snippets / encode and decode functions

Author
Message
Aaron Miller
18
Years of Service
User Offline
Joined: 25th Feb 2006
Playing: osu!
Posted: 10th Jan 2007 05:46 Edited at: 13th Jan 2007 09:00
Basically, it goes through a file, and encodes it. You can then decode the file.



These have not been tested, but have been based off of something I did make, very, very similiar to this. If they dont work, I can make them work.

-db

[edit]
I editted the code to make it a bit easier to understand.
[/edit]

GameDeveloper, make your own games with a drag-and-drop interface. Basically t3dgm+fpsc editor combined.
http://forum.thegamecreators.com/?m=forum_view&t=86045&b=8&p=2
Aaron Miller
18
Years of Service
User Offline
Joined: 25th Feb 2006
Playing: osu!
Posted: 11th Jan 2007 01:15
I know, nothing ground breaking. It's still an encoder/decoder, very usefull for string based files.

-db

GameDeveloper, make your own games with a drag-and-drop interface. Basically t3dgm+fpsc editor combined.
http://forum.thegamecreators.com/?m=forum_view&t=86045&b=8&p=2
Aaron Miller
18
Years of Service
User Offline
Joined: 25th Feb 2006
Playing: osu!
Posted: 12th Jan 2007 08:08
Anything?

GameDeveloper, make your own games with a drag-and-drop interface. Basically t3dgm+fpsc editor combined.
http://forum.thegamecreators.com/?m=forum_view&t=86045&b=8&p=2
Ian T
22
Years of Service
User Offline
Joined: 12th Sep 2002
Location: Around
Posted: 13th Jan 2007 19:23
Well, it's not even scrambled, so I don't know if I'd call it encryption per se, to be honest. If someone wants to break into your files, I imagine they'll have the resourcefulness to figure out that the float data is representing ASCII characters.
Aaron Miller
18
Years of Service
User Offline
Joined: 25th Feb 2006
Playing: osu!
Posted: 13th Jan 2007 20:14
The beauty about this, however, is that the floats can be increased/decreased by a certain amount. For example, as one person stated a while ago (In my first encode/decode thing), the bitwise operator could be used to scramble the function. And dark coder stated that some stuff could be done with randomization to make everything even more secure.

If anyone would like me to add that, I would be more than happy too.

-db

PS: Thank you for your thoughts.

GameDeveloper, make your own games with a drag-and-drop interface. Basically t3dgm+fpsc editor combined.
http://forum.thegamecreators.com/?m=forum_view&t=86045&b=8&p=2

Login to post a reply

Server time is: 2024-11-23 00:26:00
Your offset time is: 2024-11-23 00:26:00