Capicom in a dts

Last Post 25 Oct 2006 05:21 AM by Bostonrose. 1 Replies.
AddThis - Bookmarking and Sharing Button Printer Friendly
  •  
  •  
  •  
  •  
  •  
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
Bostonrose
New Member
New Member

--
24 Oct 2006 11:19 AM
I am trying to use capicom in a dts to encrypt some fields that I'm putting into the database. I am getting the following error:
Error code:0
Error Source = Microsoft VBScript runtime error
Error Description: object required: 'server'

My code is:
set message = server.CreateObject("CAPICOM.EncryptedData")
message.SetSecret(holdarea)
message.Algorithm.Name = 1 'CAPICOM_ENCRYPTION_ALGORITHM_RC4

Do I need to add some kind of definition for the "server"? Any help would be greatly appreciated. Thanks
Bostonrose
New Member
New Member

--
25 Oct 2006 05:21 AM
Thanks, that took care of that error, but now I'm getting the following error. (note I tried hardcoding my secret word to make sure it wasn't getting something wrong from the holdarea, but that didn't work either)

Error source = Microsoft VBScript runtime error
error in loading dll: message.setsecret

I know the dll works because I use it in a web page when I put data into the table and it works fine. Thanks for any more help you can give me. As you can see, I'm brand new to using Capicom, and if you are familiar with that, then do you know what size my fields have to be to hold the encryption, or how I control the size of the encryption? some of it seems to be encrypting a 20 character field into 500. thanks. bostonrose
You are not authorized to post a reply.

Acceptable Use Policy