Hello guys,
I have written functionality to encrypt and decrypt the file using perl script. Now I want to port this script to crypto++ libaray functionality.
Here is the perl script code,
//For encryption
Qt Code:
  1. my $cipher = Crypt::CBC->new(
  2. -cipher => "Crypt::Rijndael",
  3. -key => $key,
  4. -header => 'salt',
  5. );
  6. $cipher->start( 'encrypting' );
  7.  
  8. while ( read( $original_file, $buffer, 1024 ) ) {
  9. print $encrypted_file
  10. $cipher->crypt( $buffer );
  11. }
To copy to clipboard, switch view to plain text mode 

//For decryption
Qt Code:
  1. my $cipher = Crypt::CBC->new(
  2. -cipher => "Crypt::OpenSSL::AES",
  3. -key => $key,
  4. -header => 'salt',
  5. );
  6. $cipher->start( 'decrypting' );
  7.  
  8. while ( read( $encrypted_file, $buffer, 1024 ) ) {
  9. print $decrypted_file
  10. $cipher->crypt( $buffer );
  11. }
To copy to clipboard, switch view to plain text mode 
I can find the alternative to Crypt::Rijndael in crypto++ lib, but what is the alternative to Crypt::OpenSSL::AES in crypto++ library.

Thanks in advance,