NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming
Reload this Page looking someone that knows javascript REALLY well....

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.

Advanced Search


Closed Thread
 
LinkBack Thread Tools
Old 04-27-2005, 01:49 PM THREAD STARTER               #1 (permalink)
Account Closed
 
axilant's Avatar
Join Date: May 2004
Location: /etc/passwd
Posts: 2,178
axilant is a splendid one to beholdaxilant is a splendid one to beholdaxilant is a splendid one to beholdaxilant is a splendid one to beholdaxilant is a splendid one to beholdaxilant is a splendid one to behold
 

Member of the Month
July 2005

looking someone that knows javascript REALLY well....


I have a php project im doing on my spare time, a CMS and im looking for someone that can make a javascript that can decrypt some php output with a equation i use in php, and instead of printing the content the javascript will print the value of the encryption. The reason i want to do this is cause people dont like spiders crawling for email addresses and this way it will be impossible for a spider unless they can decrypt it. Which i know wouldnt take much but i mean... yea it would be able to be toggled on/off depending on the CMS administrator. I HATE SPAMMERS!!!!

if you are intrested please let me know, this CMS will not be a free script, and if you help me with this part i will give you a reseller of this script as payment!

look in my profile for ways to contact me IM or pm me!!

Cody Selzer

I know this can be done.
axilant is offline  
Old 04-28-2005, 02:04 AM   #2 (permalink)
Senior Member
Join Date: Mar 2004
Posts: 1,402
primacomputer is a jewel in the roughprimacomputer is a jewel in the roughprimacomputer is a jewel in the rough
 



Sure it can be done, I've done this many times. It really just depends on your algorithm and how you are going to pass it to the js. Perhaps post a few more details so people have a better idea of the scope of the job.
primacomputer is offline  
Old 04-28-2005, 12:59 PM THREAD STARTER               #3 (permalink)
Account Closed
 
axilant's Avatar
Join Date: May 2004
Location: /etc/passwd
Posts: 2,178
axilant is a splendid one to beholdaxilant is a splendid one to beholdaxilant is a splendid one to beholdaxilant is a splendid one to beholdaxilant is a splendid one to beholdaxilant is a splendid one to behold
 

Member of the Month
July 2005

yea your right ;P heres the code:

PHP Code:
function encrypt($string$key)
????: NamePros.com http://www.namepros.com/programming/85746-looking-someone-knows-javascript-really-well.html
    {
        for(
$i=1$i<=strlen($string); $i++)
        {
            
$char substr($string$i-11);
            
$keychar substr($key, ($i strlen($key))-11);
            
$char chr(ord($char)+ord($keychar));
            
$result=$char;
        }
        return 
$result;
    }

    function 
decrypt($string$key)
    {
        for(
$i=1$i<=strlen($string); $i++)
        {
            
$char substr($string$i-11);
            
$keychar substr($key, ($i strlen($key))-11);
            
$char chr(ord($char)-ord($keychar));
????: NamePros.com http://www.namepros.com/showthread.php?t=85746
            
$result=$char;
        }
        return 
$result;
    } 
If this one will not work, i can always make a new one... Please post comments!!!
axilant is offline  
Old 04-29-2005, 03:24 AM   #4 (permalink)
Senior Member
Join Date: Mar 2004
Posts: 1,402
primacomputer is a jewel in the roughprimacomputer is a jewel in the roughprimacomputer is a jewel in the rough
 



That's straight forward enough. What I'd do is put the decrypt function into your header as JS. Then encode the address in PHP and write out something like this:

<script> document.write( mydecrypt( “[endoded data here], ”[key here]” ) </script>

Can't get much easier than that.
primacomputer is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
JavaScript Jamison54 Website Development 3 01-30-2005 08:37 PM
javascript vs asp.net validation tzigone Web Design Discussion 0 01-21-2004 01:37 AM
How do you detect resolution & launch an app with javascript? Rhino1616 Programming 14 12-04-2003 05:10 PM
Javascript Functions: Your needs. Mp)Tarh Web Design Discussion 1 11-15-2003 06:50 AM
Javascript Problems in IE republic Programming 3 10-23-2003 03:17 AM

Liquid Web Smart Servers  
All times are GMT -7. The time now is 10:14 AM.

Managed Web Hosting by Liquid Web
Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger