Chilkat
HOME
Android™
ASP
Visual Basic
VB.NET
C#
iOS (IPhone)
Objective-C
C++
C
MFC
Delphi
FoxPro
Java
Perl
PHP Extension
PHP ActiveX
Python
PowerShell
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
mime.UnlockComponent "Anything for 30-day trial"
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
|
© 2000-2012 Chilkat Software, Inc. All Rights Reserved.