Xojo Plugin
Xojo Plugin
Example: Crypt2.EncryptSb method
Demonstrates how to call the EncryptSb method.Chilkat Xojo Plugin Downloads
Dim success As Boolean
success = False
Dim crypt As New Chilkat.Crypt2
Dim bdEncrypted As New Chilkat.BinData
Dim sbPlainText As New Chilkat.StringBuilder
success = sbPlainText.Append("Text to be encrypted")
// ...
// Set the secret key ...
// Set properties such as CryptAlgorithm, CipherMode, PaddingScheme, KeyLength
// Set the IV if needed ...
// ...
crypt.Charset = "utf-8"
success = crypt.EncryptSb(sbPlainText,bdEncrypted)
If (success = False) Then
System.DebugLog(crypt.LastErrorText)
Return
End If