Chilkat
HOME
Android™
ASP
Visual Basic
VB.NET
C#
iOS (IPhone)
Objective-C
C++
C
MFC
Delphi
FoxPro
Java
Perl
PHP Extension
PHP ActiveX
Python
PowerShell
Ruby
SQL Server
VBScript
File-to-File 256-bit AES Encryption
File-to-file AES encryption example. There is no limitation on the size of the file that can be encrypted or decrypted. The component will (internally) operating in streaming mode to encrypt/decrypt to prevent large memory usage. procedure TForm1.Button5Click(Sender: TObject);
begin
ChilkatCrypt21.UnlockComponent('test');
ChilkatCrypt21.CryptAlgorithm := 'aes';
// KeyLength can be 128-bit, 192-bit, or 256-bit
ChilkatCrypt21.KeyLength := 256;
ChilkatCrypt21.SecretKey := ChilkatCrypt21.GenerateSecretKey('password');
// File-to-file encryption.
ChilkatCrypt21.CkEncryptFile('fileData.txt','encryptedFileData.dat');
// Now decrypt...
ChilkatCrypt21.CkDecryptFile('encryptedFileData.dat','decrypted.txt');
end;
|
© 2000-2010 Chilkat Software, Inc. All Rights Reserved.