• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 474
  • Last Modified:

Ebcrypt and asp - any examples

Hi,

Im using ebcrypt http://www.ebcrypt.com to encrypt details in our system successfully using vb.

However I need to use this in asp now to encrypt/ decrypt from another application using the same database.  The code is installed on the machine and I've re-registered the dll again, however I get this error:
Server.CreateObject Failed

I suppose what I need is sample asp / ebcrypt code.
Has anyone got any?
0
lgreally
Asked:
lgreally
  • 7
  • 6
2 Solutions
 
RimvisCommented:
Hello lgreally,

Could be security issue. Make sure thar account, under which your page is running (most likely IUSR_) has read access to your DLL. Also, use dcomcnfg tool to give this user activation permissions to your class.

Regards,

Rimvis
0
 
lgreallyAuthor Commented:
Hi Rimvis

Thanks for getting back to me.
Not sure how to check or use dcomcnfg tool
Can you guide me please?

Thanks
0
 
RimvisCommented:
Launch dcomcnfg  from Run menu. Then go to Component Services->Computers->My Computer->DCOM Config Find you class. Should be something like "Ebcrypt". Go to Properties->Security. Customize launch and access permissions. You should add  "IUSR_..." user there.
0
Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

 
lgreallyAuthor Commented:
Thanks, I've located the component, it looks normal.
Installed manually and via the set up.

here's a screen image of the security..

Cheers
eBCrypt-DCOMScreen.doc
0
 
RimvisCommented:
You should check "DCOM Config", not "COM+ Applications"

0
 
lgreallyAuthor Commented:
Sorry to be a pain, I could see component services when I ran that
screen attached
ebcrypt-dcom.doc
0
 
RimvisCommented:
What is the OS on web server? Win2000? Sorry, I don't have it at hand.
And I don't want to lead you in the wrong path. You should make sure you have security issue. Did you checked Event Log o nweb server? Can you get detailed error description? What's in Err.Description property?

0
 
lgreallyAuthor Commented:
Hi Rimivis

There's no errors in the event log :(

Any other ideas?

Cheers

Louise
0
 
RimvisCommented:
Can you check Err properties after error?

ASP Err Object / Error Handling
http://developer.earthskater.net/asp/asp_error_object.asp
0
 
lgreallyAuthor Commented:
Hi Rimvis

Thanks for your help.
I've solved the problem, it was an asp issue.  I was calling the object incorrectly.
Am I able to award you some points anyway?

Louise
0
 
RimvisCommented:
Well, you can accept any of my comments as an answer. But since you solved it yourself, you could post your solution and ask moderators to mask your own solution as an answer.
0
 
lgreallyAuthor Commented:
Reference the asp library and not the vb library

eg
VB
set eCipher = server.CreateObject("ebCryptLib.eb_c_Cipher")
ASP
set eCipher = server.CreateObject("EbCrypt.eb_c_Cipher")
Use the ASP reference
0
 
lgreallyAuthor Commented:
Thanks Rimvis.

Posted my answer, will get onto moderators re points
0

Featured Post

The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

  • 7
  • 6
Tackle projects and never again get stuck behind a technical roadblock.
Join Now