Hi,

I have to encrypt some data using an encryption algorithm like TrippleDES or
AES in VBScript. After searching I found that two system32 dlls "advadpi.dll"
and "crypt32.dll" provides this functionality. But it seems these dlls are
not COM dlls. Hence I am unable to use these dlls in vbscript.
I have two questions here:
1. Please some one let me know whether I am reffering correct dlls or not to
encrypt data in vbscript.
2. And if I am referring to the correct dlls then please put some light on
how to use these dlls in vbscript.
Thanks in advance.

Regards,

Re: Encrypting data in vbscript by Luuk

Luuk
Fri May 09 07:19:41 CDT 2008

Rakesh schreef:
> Hi,
>
> I have to encrypt some data using an encryption algorithm like TrippleDES or
> AES in VBScript. After searching I found that two system32 dlls "advadpi.dll"
> and "crypt32.dll" provides this functionality. But it seems these dlls are
> not COM dlls. Hence I am unable to use these dlls in vbscript.
> I have two questions here:
> 1. Please some one let me know whether I am reffering correct dlls or not to
> encrypt data in vbscript.
> 2. And if I am referring to the correct dlls then please put some light on
> how to use these dlls in vbscript.
> Thanks in advance.
>
> Regards,

google revealed: http://www.cryptotools.com/index.aspx

--
Luuk

Re: Encrypting data in vbscript by Joe

Joe
Fri May 09 08:11:56 CDT 2008



"Rakesh" <Rakesh@discussions.microsoft.com> wrote in message
news:66ACB4A0-39FB-421E-83F4-C48CF4F7BBFD@microsoft.com...
> Hi,
>
> I have to encrypt some data using an encryption algorithm like TrippleDES
> or
> AES in VBScript. After searching I found that two system32 dlls
> "advadpi.dll"
> and "crypt32.dll" provides this functionality. But it seems these dlls are
> not COM dlls. Hence I am unable to use these dlls in vbscript.
> I have two questions here:
> 1. Please some one let me know whether I am reffering correct dlls or not
> to
> encrypt data in vbscript.
> 2. And if I am referring to the correct dlls then please put some light on
> how to use these dlls in vbscript.
> Thanks in advance.
>
> Regards,


CAPICOM might also suit your needs. The sdk has scripted examples.

--

Joe Fawcett (MVP - XML)
http://joe.fawcett.name


Re: Encrypting data in vbscript by Rakesh

Rakesh
Mon May 12 05:15:01 CDT 2008

Thanks a bunch joe,
CAPICOM looks good to me. I want use this in my vbscript. Can I directly use
it or there are some dependencies on it. If so, could you please let me know
what are they and how can I use CAPICOM in my vbscript to encrypt my data.

"Joe Fawcett" wrote:

>
>
> "Rakesh" <Rakesh@discussions.microsoft.com> wrote in message
> news:66ACB4A0-39FB-421E-83F4-C48CF4F7BBFD@microsoft.com...
> > Hi,
> >
> > I have to encrypt some data using an encryption algorithm like TrippleDES
> > or
> > AES in VBScript. After searching I found that two system32 dlls
> > "advadpi.dll"
> > and "crypt32.dll" provides this functionality. But it seems these dlls are
> > not COM dlls. Hence I am unable to use these dlls in vbscript.
> > I have two questions here:
> > 1. Please some one let me know whether I am reffering correct dlls or not
> > to
> > encrypt data in vbscript.
> > 2. And if I am referring to the correct dlls then please put some light on
> > how to use these dlls in vbscript.
> > Thanks in advance.
> >
> > Regards,
>
>
> CAPICOM might also suit your needs. The sdk has scripted examples.
>
> --
>
> Joe Fawcett (MVP - XML)
> http://joe.fawcett.name
>

Re: Encrypting data in vbscript by Rakesh

Rakesh
Mon May 12 08:50:00 CDT 2008

I observed that CAPICOM ships with OS by default. Hence it can be used
directly and is not a dependent dll.

Thanks

"Rakesh" wrote:

> Thanks a bunch joe,
> CAPICOM looks good to me. I want use this in my vbscript. Can I directly use
> it or there are some dependencies on it. If so, could you please let me know
> what are they and how can I use CAPICOM in my vbscript to encrypt my data.
>
> "Joe Fawcett" wrote:
>
> >
> >
> > "Rakesh" <Rakesh@discussions.microsoft.com> wrote in message
> > news:66ACB4A0-39FB-421E-83F4-C48CF4F7BBFD@microsoft.com...
> > > Hi,
> > >
> > > I have to encrypt some data using an encryption algorithm like TrippleDES
> > > or
> > > AES in VBScript. After searching I found that two system32 dlls
> > > "advadpi.dll"
> > > and "crypt32.dll" provides this functionality. But it seems these dlls are
> > > not COM dlls. Hence I am unable to use these dlls in vbscript.
> > > I have two questions here:
> > > 1. Please some one let me know whether I am reffering correct dlls or not
> > > to
> > > encrypt data in vbscript.
> > > 2. And if I am referring to the correct dlls then please put some light on
> > > how to use these dlls in vbscript.
> > > Thanks in advance.
> > >
> > > Regards,
> >
> >
> > CAPICOM might also suit your needs. The sdk has scripted examples.
> >
> > --
> >
> > Joe Fawcett (MVP - XML)
> > http://joe.fawcett.name
> >

Re: Encrypting data in vbscript by Rakesh

Rakesh
Tue May 13 04:25:03 CDT 2008

Hi,

Please clarify the below questions.

1. I found that CAPICOM is producing different output for the same set of
plaintext, algorithm and key length by using a password. Why is this so?
2. An algorithm such as 3DES takes 128 bit key but CAPICOM takes a plain
text password instead of a key. Why is this so?

"Joe Fawcett" wrote:

>
>
> "Rakesh" <Rakesh@discussions.microsoft.com> wrote in message
> news:66ACB4A0-39FB-421E-83F4-C48CF4F7BBFD@microsoft.com...
> > Hi,
> >
> > I have to encrypt some data using an encryption algorithm like TrippleDES
> > or
> > AES in VBScript. After searching I found that two system32 dlls
> > "advadpi.dll"
> > and "crypt32.dll" provides this functionality. But it seems these dlls are
> > not COM dlls. Hence I am unable to use these dlls in vbscript.
> > I have two questions here:
> > 1. Please some one let me know whether I am reffering correct dlls or not
> > to
> > encrypt data in vbscript.
> > 2. And if I am referring to the correct dlls then please put some light on
> > how to use these dlls in vbscript.
> > Thanks in advance.
> >
> > Regards,
>
>
> CAPICOM might also suit your needs. The sdk has scripted examples.
>
> --
>
> Joe Fawcett (MVP - XML)
> http://joe.fawcett.name
>