MSI Factory 2.3

Crypto.BlowfishDecrypt

Crypto.BlowfishDecrypt

This is the first topic This is the last topic  

Crypto.BlowfishDecrypt

This is the first topic This is the last topic  

OverviewExamples

Crypto.BlowfishDecrypt (

string Source,

string Destination,

string Key )

Example 1

-- Create a blowfish-encrypted copy of a text file in the user's temp folder

Crypto.BlowfishEncrypt(_TempFolder.."\\myfile.txt", _TempFolder.."\\myfile_blowfished.txt", "trustno1withthispassword");

 

-- Check if any errors occurred from calling the Crypto.BlowfishEncrypt action.

-- If an error occurred, display it's error message in a dialog message.

error = Application.GetLastError();

if (error ~=0) then

   Dialog.Message("Error", _tblErrorMessages[error] , MB_OK, MB_ICONEXCLAMATION, MB_DEFBUTTON1);

end

 

-- Decrypts the blowfish-encrypted file.

Crypto.BlowfishDecrypt(_TempFolder.."\\myfile_blowfished.txt", _TempFolder.."\\myfile_blowfish_decrypted.txt", "trustno1withthispassword");

 

-- Check if any errors occurred from calling the Crypto.BlowfishDecrypt action.

-- If an error occurred, display it's error message in a dialog message.

error = Application.GetLastError();

if (error ~=0) then

   Dialog.Message("Error", _tblErrorMessages[error] , MB_OK, MB_ICONEXCLAMATION, MB_DEFBUTTON1);

end

 

-- Open the decrypted file to see its contents.

File.Open(_TempFolder.."\\myfile_blowfish_decrypted.txt");

Creates a blowfish-encrypted copy of a text file in the user's temp folder and then decrypts and opens the file.

See also: Related Actions


Learn More: Indigo Rose Software - MSI Factory - Buy Now - Contact Us