Sample Visual Basic
Code to decrypt a Blowfish encrypted file:
Where Cryptocx1 is an instance of a Cryptocx Control.
Cryptocx1.Password = txtBlowFilePass.Text
Cryptocx1.SourceFile = txtSourceFileBlow.Text
Cryptocx1.DestinationFile = txtDestinationFileBlow.Text
theResult = Cryptocx1.BlowfishFileDecrypt
'' Check to see what has happened (if the decryption went ok without errors)
''
If theResult = "TRUE" Then
'' Ok, the Decryption went well with no errors
Else
MsgBox theResult
End If |