-
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
-
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
>
>
>
>
>
-
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks