I found this bit of code from www.allapi.net on how to use the windows
api to do some basic encryption. It works great so I created a dll of
the code so I could use it in different applications. So far it has
been working great with no problem, until now.

I tried to use the dll from a vbscript asp page to encrypt some
information that is being passed to the server. I call the dll just
like any other dll
set variable=server.createobject("DLLName.ClassName")
but when I try to use the dll it never returns the encrypted data. I
have put in code into the dll to log that it gets initialized and
nothing shows in the log. I also created another dll, very simple with
only one function, and it works fine.

I have this feeling that it might be security related because the dll
calls the advapi.dll and kernel in some of its function calls. I have
set permissions for IUSR_machine to have full access to the entire
machine, is there something else I should try?

Any help any of you fine folks out there can give would be greatly
appretiated.

Thanks,
Adam

Re: Crypt API dll in VBScript ASP by Michael

Michael
Wed Aug 17 19:51:10 CDT 2005

Infobound wrote:
> I found this bit of code from www.allapi.net on how to use the windows
> api to do some basic encryption. It works great so I created a dll of
> the code so I could use it in different applications. So far it has
> been working great with no problem, until now.


Why not use...

Introducing CAPICOM (Security (General) Technical Articles)
http://msdn.microsoft.com/library/en-us/dnsecure/html/intcapicom.asp?frame=true#intcapicom_where


--
Michael Harris
Microsoft MVP Scripting





Re: Crypt API dll in VBScript ASP by Infobound

Infobound
Tue Aug 23 12:03:01 CDT 2005

I finally got back to working on this and your suggestion work great.
I had seen a couple of people talking about this but I thought it was
some kind of third party control.

THanks for your help,
Adam