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.

Author
Message
sriveros
17
Years of Service
User Offline
Joined: 27th Jul 2007
Location: Edmonton, Alberta
Posted: 3rd Sep 2007 06:50
Is there an easy way to scramble letters and number around in dbpro?
Virtual Nomad
Moderator
18
Years of Service
User Offline
Joined: 14th Dec 2005
Location: SF Bay Area, USA
Posted: 3rd Sep 2007 09:24
can you be a little more specific? i can think of a few ways to scramble letters and numbers, but would be more efficient if you gave more info on 1) how many letters/numbers and 2) why you're scrambling them.

Virtual Nomad
AMD XP 1800+ (~1.6 Ghz) / 1.5 GB RAM
ATI Radeon 8700LE 128 MB / Windows XP
sriveros
17
Years of Service
User Offline
Joined: 27th Jul 2007
Location: Edmonton, Alberta
Posted: 4th Sep 2007 02:23
Here is what I am trying to do.

Let's say that the user just purchased new software. He run the software for the first time, the software asks the use for the transaction ID to generate a random number and displays it to the user. At the same time the software scrambles that number and asks the user to input that scrambled number to continue. Of course, at this time the user does not know what the number is, so he calls customer support for the scrambled number. The user reads the random number over the phone to customer support. Customers support asks a few security questions to make sure that the user did in fact purchased the software. If everything checks out, customer support enters that random generated number and the user's transaction ID into his software which generates that same scrambled number and displays it on screen. Customer support reads that number over to the user which inputs it into his software. The software checks if the two scrambled numbers match and if it does the user is allowed to continue.

Regards,
Sam
Pyramid Games Ltd
17
Years of Service
User Offline
Joined: 23rd Aug 2007
Location: Line 21, DBP
Posted: 4th Sep 2007 03:48
Good God man....

sriveros
17
Years of Service
User Offline
Joined: 27th Jul 2007
Location: Edmonton, Alberta
Posted: 4th Sep 2007 07:51
lol.... Maybe I was little too specific?
Aralox
17
Years of Service
User Offline
Joined: 16th Jan 2007
Location: Melbourne
Posted: 5th Sep 2007 09:20
So pretty much you want an exact, non random scrambler that will decode as well as encode?

PresFox
19
Years of Service
User Offline
Joined: 28th Aug 2005
Location:
Posted: 6th Sep 2007 15:06
shouldnt you build your game first? before worrying about this?

Microsoft isnt evil, they just make really crappy operating systems -- Linus torvalds
A Tea Spoon
17
Years of Service
User Offline
Joined: 23rd Apr 2007
Location: good ol USA!
Posted: 7th Sep 2007 02:22
OW! my head hurts!

What if the hokey pokey really IS what it's all about?
sriveros
17
Years of Service
User Offline
Joined: 27th Jul 2007
Location: Edmonton, Alberta
Posted: 11th Sep 2007 00:31 Edited at: 11th Sep 2007 00:33
I guess that would help... a non random scrambler that will decode as well as encode... Given the same number via the input command, how can I get the RND() command to return the same sequence of random numbers on two different programs? The help files in DBPro says that is should unless you use the RANDOMIZE command to reseed the random number generator. But even though I am not using it, I get a completely different sequence of random numbers.

Thanks... I know this is a bit confusing...
sriveros
17
Years of Service
User Offline
Joined: 27th Jul 2007
Location: Edmonton, Alberta
Posted: 11th Sep 2007 00:57
I found something that could be modified to do this... I'll test it...

Scorpyo
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: italy
Posted: 11th Sep 2007 00:59
you have interpreted that in the wrong way:

for instance:
randomize 1 will give always the same sequence whenever you have it before rnd(something) and 1 as a seed.

but randomize 2 will give a different sequence than randomize 1, randomize 3 a different one from randomize 1 and randomize 2
etc. ad infinitum

so wherever and whenever you use :

you'll get the same sequence

what they mean in the help is : in order to make sure you get different sequences (in case you need that )you must use randomize with a different seed every time
sriveros
17
Years of Service
User Offline
Joined: 27th Jul 2007
Location: Edmonton, Alberta
Posted: 11th Sep 2007 01:14
Oh nice, I got a new brain wrinkly! Thanks Scorpyo.
culmor30
17
Years of Service
User Offline
Joined: 16th Jun 2007
Location: In my head.
Posted: 11th Sep 2007 02:24
Sounds like activating Flash with Macromedia over the phone... :/

Login to post a reply

Server time is: 2024-11-25 13:25:07
Your offset time is: 2024-11-25 13:25:07