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.

Newcomers DBPro Corner / I need help with a decoder please

Author
Message
Gamefreak1450
21
Years of Service
User Offline
Joined: 23rd Oct 2003
Location:
Posted: 24th Oct 2003 04:26
Hello, I need help making a decoding program. I started DB yesterday, so try and keep it simple please. I don't know where to start! Aargh!! HELP ME PLEASE!!!!

Nothing is impossible - Except Skiing Through a revolving door
Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 24th Oct 2003 07:41
What are you trying to decode? Or do you mean encode?
Gamefreak1450
21
Years of Service
User Offline
Joined: 23rd Oct 2003
Location:
Posted: 25th Oct 2003 06:10
1st, this is mainly to bump.
2nd, say i'm trying to get like, when you type in for example "Hello", it then comes up with the coded form, "jraap". (one letter to the right on the keyboard). Knowing this, can anyone help me???????


Nothing is impossible - Except Skiing Through a revolving door
the_winch
21
Years of Service
User Offline
Joined: 1st Feb 2003
Location: Oxford, UK
Posted: 25th Oct 2003 06:38
It would be easier to shift the ascii code along one.
Use asc() to get the ascii number of the character
change the number
use chr$() to convert the number into a character.

see code.
CattleRustler
Retired Moderator
21
Years of Service
User Offline
Joined: 8th Aug 2003
Location: case modding at overclock.net
Posted: 25th Oct 2003 17:39 Edited at: 25th Oct 2003 17:42
make a preset algorithm of what character changes to what character. Once you have that you can write a function that reads each keystroke and converts, then displays, the encoded characters. Better yet, make your program have 2 modes - Encode/Decode. Have it read/write files, enc or dec the file text as a complete file, instead of char by char. So then you could type a long message to your buddy, run your program in ENCODE mode to encode the file - send your buddy the file, and he can run your program in DECODE mode to read the file. Make your KEY algorithm in a flexible way so you can alter the KEY whenever you like.

If I may ask, why are you doing this? Nothing sinister I hope.

-RUST-
Gamefreak1450
21
Years of Service
User Offline
Joined: 23rd Oct 2003
Location:
Posted: 10th Nov 2003 22:05
This is the newbies room. Ok. How do i do the key catching? Or better yet, can you write me a few lines of code? What's an algorithm? How can you create choosing mode? I NEED LOTS OF HELP!

Nothing is impossible - Except Skiing Through a revolving door
orv
21
Years of Service
User Offline
Joined: 9th Sep 2003
Location: Chicago, IL
Posted: 14th Nov 2003 01:33 Edited at: 14th Nov 2003 01:36
"algorithm" just computer-speak for a procedure for doing something.
You might think of it as a recipe!
there are ingredients:
i.e. media files
there are steps to follow:
the program. the computer follows the steps.


or perhaps its the name of music written by the former vice president of the United States!

Al Gore Rhythm....

seriously,

look in DB's help for Mid$() Left$() Right$() Len() these functions are used to work with strings.

What are strings? er white fuzzy stuff?
another computer term.... its for text... like the stuff you want to encrypt! look at this line of text, it is made of one letter after another... a string of letters. if you see functions that end in a $, chances are its for working with strings.
take an s and a t, squish it together and get $!

who thinks of these things???

hope this helps.

PS
computers are stupid. they just do what you tell them to.

If you aim at nothing you'll hit it every time. 806mhz AMD Athlon Processor. 384MB memory.
Windows XP Home Edition. RADEON 9700 Pro graphics card. - editor.exe=1.0.6.1 - DBPCompiler.exe=V1.05
Shadow Lord
21
Years of Service
User Offline
Joined: 26th Sep 2003
Location:
Posted: 15th Nov 2003 20:23
Quote: "Al Gore Rhythm...."


Boooo...Hiss....

@orv being run out of town!

I'm using DBPro to write "Suger Free Candyland", for diabetic children!

Login to post a reply

Server time is: 2024-11-25 17:22:53
Your offset time is: 2024-11-25 17:22:53