>Could anyone please show me using private and public key to encrypt data.
Alex Feldstein's excellent article in CoDe Magazine about the CryptoAPI can be accessed online at the moment at this DevX link:
http://www.devx.com/codemag/articles/2002/March/cryptoAPI/cryptoAPI-1.aspThe article gives a good explanation of cryptography concepts, then shows how to use the _cryptapi class in VFP.