Chilkat HOME ASP Visual Basic VB.NET C# Visual C++ C MFC Delphi FoxPro Java Perl PHP Python Ruby SQL Server VBScript
|
S/MIME Encrypt with Certificate from File (.cer) S/MIME encrypts a message using a .cer file. ' Encrypts any kind of file into an S/MIME encrypted message.
Private Sub Command1_Click()
Dim mime As New ChilkatMime
' Get a 30-day trial code from http:'www.chilkatsoft.com/register30.asp
mime.UnlockComponent "UnlockCode"
mime.SetBodyFromPlainText "This is a message containing a GIF image file."
mime.AppendPartFromFile "dude.gif"
mime.SaveMime "unencrypted.txt"
Dim cert As New ChilkatCert
cert.LoadFromFile "matt.cer"
' Use the certificate for encryption.
' This creates an encrypted S/MIME message.
mime.Encrypt cert
mime.SaveMime "encrypted.txt"
End Sub
|
Need a specific example? Send a request to support@chilkatsoft.com
© 2000-2008 Chilkat Software, Inc. All Rights Reserved.