CAPICOM Newbie


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: CAPICOM Newbie

  1. #1
    Per Guest

    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






  2. #2
    Michael Howard Guest

    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
    >
    >
    >
    >
    >



  3. #3
    Per Guest

    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
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center