codetoad.com
  ASP Shopping CartForum & BBS
  - all for $20 from CodeToad Plus!
  
  Home || ASP | ASP.Net | C++/C# | DHTML | HTML | Java | Javascript | Perl | VB | XML || CodeToad Plus! || Forums || RAM 
Search Site:



Home » Visual Basic » Article

Visual Basic CryptoAPI Demo Version 1.7

Article by: Kenneth Ives (3/29/2003)
Bookmark us now! Add to Favourites
Email a friend!Tell a friend
Summary: This is a detailed demonstration Microsoft's CryptoAPI. It shows you how to use passwords, hash algorithms, encrypting strings, and files.
Viewed: 35767 times Rating (18 votes): 
 4.3 out of 5
 Rate this Article  Read Comments  Post Comments

Visual Basic CryptoAPI Demo Version 1.7



Download now (191KB)

This is a detailed demonstration Microsoft's CryptoAPI. It shows you how to use passwords, hash algorithms, encrypting strings, and files.

Upgraded to version 1.7, 09/10/10. Upgrades include:

  • Fixed several minor bugs when trying to access the enhanced provider.
  • Enhanced wrapper functionality that accesses CryptoAPI calls within advapi32.dll.
  • Updated documentation in the source code and the associated text files. Please read them before writing me.
Registering CryptKci.dll

Copy the CryptKci.dll file to the system directory where all your other DLL's are stored.

  • Windows 9x, ME: \Windows\System
  • Windows NT4, 2000, XP: \Winnt\System32
Now register the DLL so it will be recognized by the system.

Select the START button, RUN

for Windows 9x, ME type: regsvr32 c:\windows\system\CryptKci.dll

for NT4, 2000, XP Type: regsvr32 c:\winnt\system32\CryptKci.dll

In the VB IDE, to use this DLL, you must first reference it via Projects, References on the toolbar menu. Scroll down the list and place a checkmark next to CryptKci




CodeToad Experts

Can't find the answer?
Our Site experts are answering questions for free in the CodeToad forums
Rate this article:     Poor Excellent
View highlighted Comments
User Comments on 'Visual Basic CryptoAPI Demo Version 1.7'
Posted by :  Archive Import (Disguised Name) at 01:21 on Monday, May 19, 2003
Any way of making this a self registering .dll?
Posted by :  Archive Import (mindserve) at 14:38 on Sunday, July 06, 2003
excellent code...well documented
Posted by :  Archive Import (milan) at 12:32 on Wednesday, July 16, 2003
CryptoAPI Demo is excelent, but
how to use X.509 certificates (Internet Explorer Store) to crypt / decrypt file. I have a private key to crypt, a public key to decrypt.

I have some expiriens with Microsoft CAPICOM.

Thank
Posted by :  Archive Import (hussain) at 05:16 on Wednesday, July 23, 2003
i need the coding of the visual basic6
and imformation about activex
Posted by :  Archive Import (Klaus-Dieter Brinkmann) at 10:18 on Thursday, July 31, 2003
It is very useful for understanding cryptoAPI. It would be quiete good to add feature to process certificates.

Does someone know a VB demp for this purpose ?

Klaus-Dieter Brinkmann

My email is
kd.brinkmann@t-online.de
I dont understand why the Submit doesn't accept.
Please send me information.
Posted by :  Archive Import (Mohan Uppaluri) at 05:19 on Saturday, August 30, 2003

The project CryptoAPI is really great.
I am working on a project where I created help file using Help Scribble but unable to associate the help file(.hlp) with my VB Code. How to do it.
Posted by :  Morerice at 03:20 on Thursday, October 21, 2004
The crypto api sample looks great, however there is one problem.
It seems a bug to me.

When using MD5 and RC4 to encrypt strings, it sometimes goes wrong.

When using the password 623895 and encrypt the string 0320, decrypting the string results in 032.

What could be wrong here?



To post comments you need to become a member. If you are already a member, please log in .

 



RELATED ARTICLES
Generate License Keys (such as CD keys on Microsoft software)
by Brian Gillham
This class allows you to generate license keys, such as the CD keys on the case of most Microsoft software
Communicating with the Database (Using ADO)
by Chaudhary Pradeep K. Roy
Using ADO to get connected with the database.
Visual Basic Read and Modify the Registry
by Kenneth Ives
Perform the four basic functions to the Windows registry. Add, change, delete, and query. Allows you to to read registry values, and modify both keys and values.
Generate an Array of Unique Random Numbers
by Brian Gillham
This function will generate an ARRAY of TRULY random numbers.
Beginning Resource Files in Visual Basic
by Kenneth Ives
Have you ever wanted to use graphics, such as icons, bitmaps, cursors, and AVI files? How about sound or even message box text? This can be an enormous amount of overhead. These are all examples of more files to keep track of when you distribute an application, DLL, or OCX. Lets find out how resource files can help....
Visual Basic Compact/Repair Access Database Utility
by Kenneth Ives
This utility will compact and repair the access database you select. It is actually more convenient to use this utility than do the same task with Access, because you don't have to save the database with a different name and then delete the old database when you are done: here, a temporary copy of the database is automatically created and deleted.
Creating a watermark in Excel with VBA
by Kenneth Ives
Adding a watermark to an Excel spreadsheet using VBA.
Change Cursor to Hour Glass
by Brian Gillham
A simple script to change the cursor to an hour glass.
Generate your own Random Numbers
by Thaha Hussain
This simple program generates random numbers using the basic mathematical methods.
Analog Clock
by Thaha Hussain
This program demonstrates Thaha Hussain's Clock Work Formula to paint an Analogue Clock.








Recent Forum Threads
• C++
• Re: refresh parent after closing pop up window
• Dynamic Insertion
• Date and Time function around the world???
• Significant Factors
• Perl array access
• Re: huffman encoding and decoding in C++...
• Perl One Liner: Replace {(
• Re: html including php, accessing the functions


Recent Articles
ASP GetTempName
Decode and Encode UTF-8
ASP GetFile
ASP FolderExists
ASP FileExists
ASP OpenTextFile
ASP FilesystemObject
ASP CreateFolder
ASP CreateTextFile
Javascript Get Selected Text


© Copyright codetoad.com 2001-2009