Click to See Complete Forum and Search --> : Multiplying two numbers together on a web page, but keeping one number secret???


Danielle Harvey
April 19th, 2002, 08:39 PM
I want to create a web page where the user inputs
some number, I multiply that number by some special number and it returns a new number. Here is the catch, the special number is important to me and I don't want other people to know what that number is. If I just use java or simple html, anyone can go to Edit/View Source and see my special number.

Is there any way of doing this? Or is there a way
to make html execute some simple c++ program and then retrieve the number that it returns. I can easily write something in c++ to multiple the user inputted number with my number and return the new number, but I don't know how to get html to execute a c++ file.

Any ideas? Any thoughts? Any code?

Any response you can give me will be greatly appreciated.

Sincerely,
Danielle (an overworked graduate student)

stimpy_z
April 29th, 2002, 02:11 PM
Hi!
As you've said it's impossible to make "secret" a number (or anything else) in a client-scripting code. If you don't have a server-scripting technology at hand (ie: php, asp, etc), I recommend you to learn a bit of Java and make it in an applet. It's not so difficult (very c++ like) and it'll solve many of your problems.

It's known that Java applets can be "unassembled", but that's another story. That takes a bit more of an effort. It depends on how "secret" you want your number to be.


Thanks for driving thru!