Welcome to the dBforums forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions, articles and access our other FREE features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload your own photos and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact support.

If you prefer not to see double-underlined words and corresponding ads, place your cursor
here for ContentLink opt out.

Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > Isolate and encrypt entry in Insert Record

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-05-04, 17:44
DataWho DataWho is offline
Registered User
 
Join Date: Oct 2002
Posts: 20
Isolate and encrypt entry in Insert Record

Hi Folks,

I'm having a hard time with performing a function on a string. I've set up an RC4 encryption function that works wonderfully on standard updates through a dedicated form, but I am using Dreamweaver's Insert Record function and it throws everything in an array (which of course is a good idea). What I don't fully understand is how to isolate the field I want to encrypt, and how to apply that function to only that element in the array.

To be more clear, here is the insert loop:

MM_fieldsStr = "namecard|value|Card_Type|value|Card_Number|value| Exp_Month|value|Exp_Year|value|key|value|membertyp e|value|datepurchased|value"
MM_columnsStr = "cust_nameoncard|',none,''|cust_cardtype|none,none ,NULL|cust_cardnumber|',none,''|cust_cardexpirymon th|',none,''|cust_cardexpiryyear|',none,''|cust_su bscriberid|none,none,NULL|cust_membertype|none,non e,NULL|cust_datepurchased|',none,NULL"

For MM_i = LBound(MM_fields) To UBound(MM_fields) Step 2
MM_fields(MM_i+1) = CStr(Request.Form(MM_fields(MM_i)))
Next

I know that I need to perform the function on MM_fields(3), but how?!

I hope I'm explaining this correctly.

Thanks,
DataWho!?
Reply With Quote
  #2 (permalink)  
Old 01-10-04, 18:49
stretch stretch is offline
Registered User
 
Join Date: Jan 2004
Posts: 4
Re: Isolate and encrypt entry in Insert Record

If your using the RC4 as a function then the script I was using had the following in the ASP code:

ENCRYPT(Var1,Var2)

where Var1 is what you need to encrypt and Var2 is the key

to decrypt is the same format.

hope this helps?
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On