CryptoAPI的几个用处

1. 加密和解密

可以用对称加密,即用Session Key。

先用一个字符串做密码,然后对他进行hash运算,通过hash结果得到Session Key。然后用Session Key进行加密、解密。Session Key可以导入、到处。

2. 签名

需要用到公钥和私钥。用私钥签名,用公钥验证。

会用到Message协助签名,其中Message操作有两组函数,Low-Level Message Functions和Simplified Message Functions。

The CryptoAPI message functions adhere to RSA PKCS #7 Cryptographic Message Syntax (CMS) Standard published by RSA Laboratories, a division of RSA Data Security, Inc.

posted @ 2009-09-04 18:21  Fan Zhang  阅读(280)  评论(0编辑  收藏  举报