Encrypting and decrypting from file to file (VB example)
In This Topic
Here are two examples for VB, one demonstrates encryption from file to file, the other demonstrates decryption from file to file. Both show how to use the Rijndael algorithm.
Visual Basic - Encryption
Copy Code
' Encryption example
Dim xEnc As New XceedEncryption Call xEnc.License( "your license key" )
Dim vaBytesRead As Variant
Set xEnc.EncryptionMethod = New XceedRijndaelEncryptionMethod
On Error Resume Next
Call xEnc. EncryptionMethod.SetSecretKeyFromPassPhrase("This is a weak pass phrase!", 128)