FoxPro Examples

ChilkatHOMEAndroid™ASPVisual BasicVB.NETC#iOS (IPhone)Objective-CC++CMFCDelphiFoxProJavaPerl
PHP ExtensionPHP ActiveXPythonPowerShellRubySQL ServerVBScript

Visual FoxPro Examples

Bounced Mail
Bz2
Character Encoding
CSV
Digital Certificates
Digital Signatures
Email
Email Object
FTP
HTML Conversion
HTTP
IMAP
Encryption
MHT / HTML Email
POP3
RSA
S/MIME
Socket
Spider
SFTP
SMTP
SSH
SSH Key
SSH Tunnel
String
Tar
Upload
XML
XMP
Zip Compression
Self-Extractor

More Examples...
Amazon S3
DKIM / DomainKey
NTLM
RSS
Atom
Byte Array
Service
PPMD
Deflate
DH Key Exchange
DSA
FileAccess
Bzip2
LZW

 

Non-Chilkat Links
Text and String Handling

Using a .NET .snk Key File for RSA Encryption

Demonstrates how to load and use a .NET .snk key file for RSA encryption. SNK files are created by the Microsoft .NET Strong Name Tool (Sn.exe).

Download 32-bit Chilkat RSA ActiveX (.msi)

Download All 32-bit Chilkat ActiveX Components (.zip)

Download All 64-bit Chilkat ActiveX Components (.zip)

LOCAL loRsa
LOCAL lnSuccess
LOCAL lcXmlKey
LOCAL lnBUsePrivateKey
LOCAL lcEncryptedText
LOCAL lcDecryptedText

loRsa = CreateObject('Chilkat.Rsa')

lnSuccess = loRsa.UnlockComponent("Anything for 30-day trial")
IF (lnSuccess <> 1) THEN
    =MESSAGEBOX("RSA component unlock failed")
    QUIT
ENDIF

*  Load a public/private key pair from a .snk key file.

lcXmlKey = loRsa.SnkToXml("chilkat2.snk")

? lcXmlKey

*  The xmlKey contains both public and private keys.
*  Import either the public or private for encrypting or
*  decrypting.
loRsa.ImportPrivateKey(lcXmlKey)

lnBUsePrivateKey = 1

lcEncryptedText = loRsa.EncryptStringENC("Hello World!",lnBUsePrivateKey)

? lcEncryptedText

*  Now decrypt with the public key:
loRsa.ImportPublicKey(lcXmlKey)
lnBUsePrivateKey = 0

lcDecryptedText = loRsa.DecryptStringENC(lcEncryptedText,lnBUsePrivateKey)

? lcDecryptedText

*  Note: We could have just as well encrypted using the public key
*  and decrypted using the private key.

© 2000-2010 Chilkat Software, Inc. All Rights Reserved.

Mail Component · .NET Email Component · ASP Mail Component · XML Parser