Re: CryptoAPI
From: headcrash (headcrash_at_platter.com)
Date: 01/02/05
- Next message: Lindsay: "Re: Task Manager"
- Previous message: john townsley: "Re: handle,device context"
- In reply to: Sam Hobbs: "CryptoAPI"
- Next in thread: Sam Hobbs: "Re: CryptoAPI"
- Reply: Sam Hobbs: "Re: CryptoAPI"
- Reply: Sam Hobbs: "Re: CryptoAPI"
- Messages sorted by: [ date ] [ thread ]
Date: Sun, 02 Jan 2005 00:48:05 -0800
On Sat, 1 Jan 2005 21:58:17 -0800, "Sam Hobbs"
<samuel@social.rr.com_change_social_to_socal> wrote:
>There was a sample program called VBCrypto that lived in the "A
>Cryptographic Filter Box Class in Visual Basic" Technical article. I have
>the article and sample program but I can't find them in the current online
>MSDN, so I can't refer to them. However I think the lengths of the text
>input and output buffers are not being set properly in the VBCrypto sample.
>
>Apparently the samples in KB article 821762 ("How to encrypt a string in
>Visual Basic 6.0 and how to decrypt the string in Visual Basic .NET") are
>more current samples. The disadvantage of that sample is that the relevant
>code is packaged as a DLL. Well, so I need to spend a little time learning
>how it works. I was hoping that I would not need to spend a lot of time on
>this, since the requirements are simple. We just need to encrypt a password
>stored in the registry. However I will learn what I need to learn if I need
>to.
>
>The VBCrypto seems to be a better sample to start from, in terms of
>convenience and it works. It works except for the lengths problem. If anyone
>is familiar with the sample, if I can get confirmation that there is a
>problem such as I describe, then that would help.
>
>Are there any other samples of the CryptoAPI?
>
This is some code from Kenneth Ives
http://www.codetoad.com/zips/CryptoAPI_Demo.zip
There are two different parts to this code.
The first does different crypto tasks using his own DLL called
CryptKci.dll and there is a lot of VB code already written and it is
quite good in my opinion and the opinion of others.
The second part is the code he used to make the DLL itself. You can
actually see exactly how he wrote the DLL in Visual Basic and you can
re-compile the DLL yourself.
But the *really* interesting thing happens in the BAS and CLS modules
for the DLL code, and if you drill into that and look around you will
get some EXCELLENT CrytoAPI training.
It is some of the best VB crypto using the CryptoAPI that I've seen.
Kenneth should get a prize or something for all that hard work that he
basically gives to all of us for free.
Have fun.
- Next message: Lindsay: "Re: Task Manager"
- Previous message: john townsley: "Re: handle,device context"
- In reply to: Sam Hobbs: "CryptoAPI"
- Next in thread: Sam Hobbs: "Re: CryptoAPI"
- Reply: Sam Hobbs: "Re: CryptoAPI"
- Reply: Sam Hobbs: "Re: CryptoAPI"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|