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?
lgreallyAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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
Cloud Class® Course: Microsoft Azure 2017

Azure has a changed a lot since it was originally introduce by adding new services and features. Do you know everything you need to about Azure? This course will teach you about the Azure App Service, monitoring and application insights, DevOps, and Team Services.

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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
lgreallyAuthor Commented:
Thanks Rimvis.

Posted my answer, will get onto moderators re points
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
ASP

From novice to tech pro — start learning today.