Isn't that the same functions I am using in the code above?
This still doesn't answer how I access the data between forms.
Main Topics
Browse All TopicsIs it possible to encrypt URL information between pages?
Here is the example that I am trying to get to work...
FormA.cfm
**************************
<cfset XString = "ASequenceNumber=#QueryA.A
<cfset XString = encrypt("#Session.XString#
<a href="../FormB.cfm?XString
FormB.cfm
**************************
<cfoutput>
value of XString = decrypt("#XString#","akey"
</cfoutput>
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
If you are going to be outputting the value on the next page anyway - then what difference does it make if it's encrypted in the url?
Like I said in the last post you posted on this topic - you shouldn't be passing personal information anywhere. You should be using a key from the database that refers to that user's record. Then all you need to do is select the columns you want where the key = url.variable - and you can do that from anywhere in the application on demand. All you have to worry about is one variable - the primary key. You don't have to worry about maintaining a list of values across the application for each user.
It will get very sloppy if you try to maintain the user's complete db record in any type of variable - url, session, cookie - whatever. It's not going to be "elegant".
I hope that makes sense.
NO, the functions are not the same at all...
encrypt is not sutable for returning ascii encryped charecters.
i now see your problem. you need to encrype each URL part like:
<cfoutput>
<a href="../FormB.cfm?ASequen
</cfoutput>
etc...
you dont want to "damadge" the "&" signs, or else the URL string wont be parsed correctly.
you can encrypt the whole URL string like:
<cfset XString = cfusion_encrypt("#QueryA.A
<a href="../FormB.cfm?XString
but then you need to parse it manualy like (like a CF list with "&" as delimiter):
FormB.cfm
---------
<cfset XString = cfusion_decrypt(URL.XStrin
<cfoutput>
<p>ASequenceNumber = #ListGetAt(XString, 1, "&")#
<p>BSequenceNumber = #ListGetAt(XString, 2, "&")#
<p>Qualifier = #ListGetAt(XString, 3, "&")#
</cfoutput>
Hope you see my point.
adumas,
No comment has been added lately (867 days), so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area for this question:
RECOMMENDATION: Award points to KobiK http:#5840434
Please leave any comments here within 7 days.
-- Please DO NOT accept this comment as an answer ! --
Thanks,
jyokum
EE Cleanup Volunteer
Business Accounts
Answer for Membership
by: KobiKPosted on 2001-02-13 at 11:49:04ID: 5839846
you can use the internal:
CFUSION_ENCRYPT and CFUSION_DECRYPT functions...
ie:
CFUSION_ENCRYPT(str, "mykey")