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
Read File, Encrypt in Memory, Save FileDownloads: MS Windows Visual C/C++ Libraries Linux/CentOS C/C++ Libraries MAC OS X C/C++ Libraries Solaris C/C++ Libraries C++ Builder Libraries FreeBSD C++ Libraries HP-UX C++ Libraries BlackBerry QNX C++ Libraries This example is in response to this customer question: CkCrypt2 crypt; crypt.UnlockComponent("30-day trial"); crypt.put_CryptAlgorithm("aes"); crypt.put_KeyLength(128); CkByteData secretKey; crypt.GenerateSecretKey("myPassword",secretKey); crypt.put_SecretKey(secretKey); // Load the contents of a file into memory. CkByteData dataToEncrypt; dataToEncrypt.loadFile("chilkatDude.jpg"); // Encrypt it... CkByteData encryptedData; crypt.EncryptBytes(dataToEncrypt,encryptedData); // Save the encrypted data to a file. encryptedData.saveFile("encryptedDude.dat");
|
© 2000-2010 Chilkat Software, Inc. All Rights Reserved.