CryptoDemo is a console program for Windows 98/2000/XP/Vista.

This program demonstrates how to use the cryptographic function in ePass1000 SDK.

  >> Create a context handle of ePass.
  >> Search an unused device and open it.
  >> Create a directory for demo.
  >> Let the user input a security key to create two key files.
  >> Create key file context.
  >> Create two key files and save the content.
  >> Get random data for MD5_HMAC.
  >> Do MD5_HMAC calculation by software.
  >> Do MD5_HMAC calculation by device.
  >> Compare results of two MD5_HMAC calculations.
  >> Remove demo data(demo directory and key files).
  >> Close device.
  >> Delete context handle.

[notice1]: This sample need to verify user authority when create a dir, please sure token's create authority is "Anyone".