Solved

Encrypt a javascript/url variable with a coldfusion function

Posted on 2006-11-01
5
407 Views
Last Modified: 2013-12-20
I have a page that passes information to another file which inserts that info into a DB via url variable.  the url variable is passed to the page that does the insert/update asynchronously using javascript.   What i would liek to do is enrypt that url variable before it gets sent via the ajax call.  I am hoping that there is a) a javascript function that can act liek the cf encrypt() function or b use wddx somehow to pass the information between js and cf before being sent via the url.
0
Comment
Question by:jduawa
  • 3
5 Comments
 
LVL 36

Expert Comment

by:SidFishes
ID: 17851854
are you trying to obscure the url value or simply trying to encrypt the ajax call?

If you are passing sensitive data via ajax just use https instead of http in the script call
0
 
LVL 20

Expert Comment

by:trailblazzyr55
ID: 17851861
here's a javascript function you can do that does a type of encryption... I don't believe there is a built in function like CF has..

http://javascript.internet.com/passwords/xor-encryption4.html
0
 
LVL 20

Accepted Solution

by:
trailblazzyr55 earned 500 total points
ID: 17851878
here's another javascript string encryption method, bit better than the previous...

http://pajhome.org.uk/crypt/md5/
0
 
LVL 1

Author Comment

by:jduawa
ID: 17851910
i think what i will have to do is create or use an existing javascript function to encrypt the url variable before it is passed then on the page that processes it ieither use a ajvascript function to decrypt it or write a small java program to do the decrytion and call that with CF
thanks for th einiput
0
 
LVL 20

Expert Comment

by:trailblazzyr55
ID: 17851962
Glad I could help! And good luck, let us know if you have any more questions...

Thanks,
~trail
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
graphic software 6 90
LAMP problem identifier tool ? 9 119
Has my website been infiltrated? 21 67
Ubuntu Apache Webserver - File Permissions 5 42
A web service (http://en.wikipedia.org/wiki/Web_service) is a software related technology that facilitates machine-to-machine interaction over a network. This article helps beginners in creating and consuming a web service using the ColdFusion Ma…
Have you ever sent email via ColdFusion and thought of tracking this mail to capture the exact date and time when the message was opened ?  If yes, then this article is for you ! First we need a table user_email with columns user_id , email , sub…
The purpose of this video is to demonstrate how to properly insert a Vimeo Video into a WordPress site or Blog. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: mywebsite.com/wp…
The purpose of this video is to demonstrate how to set up an RSS Feed on a WordPress Website. This will be demonstrated using a Windows 8 PC. Feedburner will be used for this demonstration. Go to your WordPress login page. This will look like the…

831 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question