proxy url encryption method - ok?
would this be a sufficient url encryption method for a proxy?
assign 37 characters (a-z + 0-9 + -) each to a different random string of numbers/letters (strlength = 10). eg. a = 3hubf1mda7; b = l23ll22ad5a; c = 24j5m44ad4 each time the script is loaded, the values change. they are stored as variables at the top of the script. the URL is entered, and it gets "encrypted" by replacing the URL text with corresponding random letters/numbers that displays on the user's browser the real URL is decrypted and loaded - all in the same script process, the random letters/numbers are substituted for their corresponding real numbers/letters. comments? |
suppose a and b have the same random string[There is a remote possiblity of that....] say
a=3hubf1mda7 b=3hubf1mda7 then when you encounter a 3hubf1mda7 in the encryted url what do you decrypt as ??? "a" or "b" . Unless you are really serious abt this , it needs to be corrected. If this is really necessary then how do you generate the different random strings i.e, a,b,c.... ?? |
I've considered that possibility - I figured that an if statement or similar could be used - but I'm not quite sure how it would work. I'm thinking...
It's a project of mine, nothing too serious, just tinkering about. I'm REALLY interested in encryption and want to learn as much as I can about it and eventually write my own algorithms. I think this is a nice little project. I believe there are many random letter/number functions for Perl (language I'm using) - most probably based on time. |
All times are GMT -5. The time now is 05:55 PM. |