Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

CAPICOM Newbie

Ha all.

I'm connection to the CAPICOM object thru ColdFusion and it's a
couple of things that puzzles me:

1. To set algorithm and KeyLength to 3 and 0, I'm doing like this (In ColdFusion):

oCryptAlg = oCrypt.Algorithm;
oCryptAlg.Name = 3;
oCryptAlg.KeyLength = 0;

It seems like it's working (No errors and cipher out), but how can i be sure
what Alg. and Length that's been used ?

2. When I'm decrypting, It seems like I don't have to define Algorithm and
KeyLength, but just Key... Is that right ?. Does the Object "understand"
what Alg and Length that has been used when decrypting? Whatever Alg and
Length I set it outputs Plaintext.

3. Is there any way to produce some kind of Hash with the object ?

4. How on earth do I encrypt files, with keeping the filenames intact.....?

Thanks in advance

regards,

Per
[963 byte] By [Per] at [2007-11-9 23:49:40]
# 1 Re: CAPICOM Newbie
1) try decrypting the blob using, say, CAPI
2) no, you must provide the same info
3) nope - future version, presently focused on digsigs
4) not sure what you mean!

"Per" <per@specifique.tv> wrote:
>
>Ha all.
>
>I'm connection to the CAPICOM object thru ColdFusion and it's a
>couple of things that puzzles me:
>
>1. To set algorithm and KeyLength to 3 and 0, I'm doing like this (In ColdFusion):
>
>oCryptAlg = oCrypt.Algorithm;
>oCryptAlg.Name = 3;
>oCryptAlg.KeyLength = 0;
>
>It seems like it's working (No errors and cipher out), but how can i be
sure
>what Alg. and Length that's been used ?
>
>2. When I'm decrypting, It seems like I don't have to define Algorithm and
>KeyLength, but just Key... Is that right ?. Does the Object "understand"
>what Alg and Length that has been used when decrypting? Whatever Alg and
>Length I set it outputs Plaintext.
>
>3. Is there any way to produce some kind of Hash with the object ?
>
>4. How on earth do I encrypt files, with keeping the filenames intact.....?
>
>Thanks in advance
>
>regards,
>
>Per
>
>
>
>
>
Michael Howard at 2007-11-12 0:14:53 >
# 2 Re: CAPICOM Newbie
"Michael Howard" <mikehow@microsoft.com> wrote:
>

Thanks for the reply Mike :)

When i decrypt the BLOB, i only have to supply the object with the key
(My password), not Algorithm etc.

Doesn't mather now, I fired up AspEncrypt, which has all the functionality
i need.

Thanks

Per
Per at 2007-11-12 0:16:04 >