Results 1 to 2 of 2
  1. #1
    Join Date
    Oct 2002

    Unanswered: 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)))

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

    I hope I'm explaining this correctly.


  2. #2
    Join Date
    Jan 2004

    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:


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

    to decrypt is the same format.

    hope this helps?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts