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.

The 20 Line Challenge / Encode and Decode functions!!!

Author
Message
Aaron Miller
18
Years of Service
User Offline
Joined: 25th Feb 2006
Playing: osu!
Posted: 8th Jul 2006 09:02 Edited at: 5th May 2007 12:19
In my opinion, these are good functions! I created them in around 2 minutes (maybe 3-4), but the idea was thought of in a split second.

This is for DarkBASIC Pro

Here it is compressed (And doesnt work with 5.9, however is untested otherwise)


And uncompressed and working!


Because of the way I uncompressed the uncompressed version, some functions might be missing, but the concept remains the same!

Feel free to comment. Also I have created a file browser function, it will be released next edit...

[EDIT] I'm doing something for the fpsc level contest right now, so i'm not going to edit anything, instead, i will show what i think was my source code....


Edit of 5-05-07



What? You mean I cant sleep here???
Aaron Miller
18
Years of Service
User Offline
Joined: 25th Feb 2006
Playing: osu!
Posted: 8th Jul 2006 12:49
Comments? Anybody?

Oh, if some one finds it in their heart, will you please compress the file viewer? Thank you.

I probobly shouldnt be expecting comments this late into the night though, should i?


Oh, also, here is a palette tutorial, it's not the greatest, but it is all right...

I finally have a NEW computer!!!
Windows XP Pro, AMD Athlon 64-BIT Processor, ATI Radeon Graphics, Windows Vista compatable, DirectX 9.0c, 2 Hard Drives, 6 Extra Drives, etc. etc.

Attachments

Login to view attachments
Three Score
20
Years of Service
User Offline
Joined: 18th Jun 2004
Location: behind you
Posted: 9th Jul 2006 07:18
could you tell me what it does
and why not use it on exe files

JouleOS and friends
great thanks to http://galekus.com for FREE HOSTING!
Aaron Miller
18
Years of Service
User Offline
Joined: 25th Feb 2006
Playing: osu!
Posted: 9th Jul 2006 08:35
What it does...
It makes it so that other people can not see the contents of a file, it also has the function to reverse that. In other words, it recodes the file, and then (if said to) undoes that process. This is usefull for saves (Such as highscores, namelists, rpg saves, etc), custom media, and Anything on your computer (That's not a program)!

Why not to use it on programs...
The way this works is that it will write bytes of information into a file, if this is done on an executable program (or PE) it will mess up the file. Even when decoded, it will mess up the file. The reason why this happens is because the encode/decode engine writes bytes via text editing. If I could, i would do it with TRUE bytes, but DarkBASIC does not work this way (To the extent of my knowledge).

*takes a look at locations*, that's impossible!

I finally have a NEW computer!!!
Windows XP Pro, AMD Athlon 64-BIT Processor, ATI Radeon Graphics, Windows Vista compatable, DirectX 9.0c, 2 Hard Drives, 6 Extra Drives, etc. etc.
Aaron Miller
18
Years of Service
User Offline
Joined: 25th Feb 2006
Playing: osu!
Posted: 9th Jul 2006 09:41
Comments, Anyone? Things to improve, things to add on to? Functions to add? My-code-is-better-than-your-code wars? Anything?

I finally have a NEW computer!!!
Windows XP Pro, AMD Athlon 64-BIT Processor, ATI Radeon Graphics, Windows Vista compatable, DirectX 9.0c, 2 Hard Drives, 6 Extra Drives, etc. etc.
EddieB
20
Years of Service
User Offline
Joined: 29th Sep 2004
Location: United Kingdom
Posted: 9th Jul 2006 19:36
It's just basic ASCII Shifting

Look into cryptography and 1024bit encryption LOL!
Aaron Miller
18
Years of Service
User Offline
Joined: 25th Feb 2006
Playing: osu!
Posted: 10th Jul 2006 10:51
Yep, but it works.

I finally have a NEW computer!!!
Windows XP Pro, AMD Athlon 64-BIT Processor, ATI Radeon Graphics, Windows Vista compatable, DirectX 9.0c, 2 Hard Drives, 6 Extra Drives, etc. etc.
lower logic
18
Years of Service
User Offline
Joined: 15th Jun 2006
Location:
Posted: 10th Jul 2006 11:02
Hey ASCII shifting rocks.

You should try programming xor encryption, it's not as complex as public key cryptography but would be harder to brute-force than ascii shifting.
Three Score
20
Years of Service
User Offline
Joined: 18th Jun 2004
Location: behind you
Posted: 11th Jul 2006 09:54
oh I made something like this before
and dbp can use bytes(theres a BYTE type for godsake) and theres read byte from file also if this don't work for binary stuff then you actually can't even encode some text(unicode and such)

JouleOS and friends
great thanks to http://galekus.com for FREE HOSTING!
Aaron Miller
18
Years of Service
User Offline
Joined: 25th Feb 2006
Playing: osu!
Posted: 11th Jul 2006 10:07
I know dbp can use bytes, that's how this works. I haven't seen a binary read option though. Theres probobly a function to convert to binary.

I finally have a NEW computer!!!
Windows XP Pro, AMD Athlon 64-BIT Processor, ATI Radeon Graphics, Windows Vista compatable, DirectX 9.0c, 2 Hard Drives, 6 Extra Drives, etc. etc.
Sven B
19
Years of Service
User Offline
Joined: 5th Jan 2005
Location: Belgium
Posted: 11th Jul 2006 16:24
You could go very far when combining it all.

like

first shift like your code
byt = byt << level
byt = byt || %10011010

I mean. The number of possibilities is infinite

It's the programmer's life:
Have a problem, solve the problem, and have a new problem to solve.
Aaron Miller
18
Years of Service
User Offline
Joined: 25th Feb 2006
Playing: osu!
Posted: 12th Jul 2006 08:03
Cool, thanks Sven B.

Oh, heres a function to find the total length of the file....



I finally have a NEW computer!!!
Windows XP Pro, AMD Athlon 64-BIT Processor, ATI Radeon Graphics, Windows Vista compatable, DirectX 9.0c, 2 Hard Drives, 6 Extra Drives, etc. etc.
Daemon
18
Years of Service
User Offline
Joined: 16th Dec 2005
Location: Everywhere
Posted: 12th Jul 2006 20:23
that function finds the length of the last line of the file.

If you wanted to find the number of lines in the file you would change it to this.



Aaron Miller
18
Years of Service
User Offline
Joined: 25th Feb 2006
Playing: osu!
Posted: 13th Jul 2006 07:23
Oh, sorry, i forgot to make

into

and that is what i meant.

I finally have a NEW computer!!!
Windows XP Pro, AMD Athlon 64-BIT Processor, ATI Radeon Graphics, Windows Vista compatable, DirectX 9.0c, 2 Hard Drives, 6 Extra Drives, etc. etc.
Diggsey
18
Years of Service
User Offline
Joined: 24th Apr 2006
Location: On this web page.
Posted: 14th Jul 2006 18:50 Edited at: 14th Jul 2006 18:52
my-code-is-better-than-your-code-wars

You've already seen this on my other thread DB user 2006+ but you did ask for this in a previous post

More secure:




This way is much more secure because the value added on changes almost randomly depending on the password and number code (the code should be a number)

I've tested it, and it works on itself.
You need a folder called decoded where it can put decoded files. This can also be used to encrypt messages

There are three types of people, those that can count and those that can't.
Aaron Miller
18
Years of Service
User Offline
Joined: 25th Feb 2006
Playing: osu!
Posted: 15th Jul 2006 08:53
NNNNOOOOO!!!!!!!! It seems i have lost... Oh, well, this was only thought of in a split second and designed in like 5 minutes, good job Diggsey.

Check out Game Developer game creation software here!
Zotoaster
19
Years of Service
User Offline
Joined: 20th Dec 2004
Location: Scotland
Posted: 17th Jul 2006 20:20
@DB User 2006+

Your sig is way too big... Nice program though

Aaron Miller
18
Years of Service
User Offline
Joined: 25th Feb 2006
Playing: osu!
Posted: 18th Jul 2006 07:19
Yes, the sig was too big, but thank you for the comment! I appreciate it. The sig has been mod edited, i had no idea it was that big, so i editted it.

Game Developer
http://forum.thegamecreators.com/?m=forum_view&t=84124&b=8
Be Ruler of your World...

Login to post a reply

Server time is: 2024-11-21 15:47:18
Your offset time is: 2024-11-21 15:47:18