EasyByte Software

Welcome to EasyByte Software

Home Buy Online Products Downloads Support
Sections
Index
About
Installation
Properties
Methods
ASP and dotNET
Further Information
  

 

 

BlowfishFileEncrypt Method
 
     

Cryptocx v7 User Guide

 

BlowfishFileEncrypt Method

This is the method that you use to encrypt a file using 448 bit strength blowfish encryption. This method is complementary to the BlowfishFileDecrypt method that decrypts the file.

 

Description

Encrypts a file using 448 bit Blowfish Encryption.

     
Syntax

x = object.BlowfishFileEncrypt

The syntax of the BlowfishFileEncrypt method has these parts:

 
Part Description
object A Cryptocx v7 control.
x A string that becomes either "TRUE" or "Error: xxx" where xxx is the error message.

       
Remarks If for whatever reason the method fails to complete, the method will return some text stating exactly what has gone wrong, if the method runs ok then the output from the method will = "TRUE". 

If you specify a Password that is not 56 characters in length when encrypting (448 bit encryption) Cryptocx will use SHA hashing to create a 56 character password, using your initial password as the seed for SHA.

       
Returns

"TRUE" or a string stating what went wrong beginning with "Error:"

     
Example Sample Visual Basic Code to encrypt a file using blowfish:

Where Cryptocx1 is an instance of a Cryptocx Control.

Cryptocx1.Password = txtBlowFilePass.Text
Cryptocx1.SourceFile = txtSourceFileBlow.Text
Cryptocx1.DestinationFile = txtDestinationFileBlow.Text
theResult = Cryptocx1.BlowfishFileEncrypt


'' Check to see what has happened (if the encryption went ok without errors)
''

If theResult = "TRUE" Then
'' Ok, the Encryption went well with no errors
Else
 MsgBox theResult
End If

 

 

 

 

Back to Contents Page

 

Click here to set this great site as your home page

Or click here to add it to your Favorites.

  
  
 

Copyright (c) EasyByte Software 1998-2008, info@easybyte.com