title: Error encrypting files with Botan and Qt
body: <p>I'am trying to use "Botan" to encrypt and decrypt files (AES 256). Integrating the library in Qt was done successfully. I followed many examples I found on the Internet like this <a href="http://grip.espace-win.org/doc/apps/botan/tutorial.pdf" rel="nofollow">tutorial</a> but I got the following </p>
  
  <pre><code>error: 
  class Botan::S2K' has no member named 'set_iterations'
  </code></pre>
  
  <p>I figured out that the Botan version for which the tutorial was created is outdated and that the version I'am using (1.10.5) is incompatible.  </p>
  
  <p>My question is:<br>
  Where can I find the tutorial for the new version? If none exists, where can I download the windows installer of the previous version (1.8 or 1.9)?</p>
  
  <p>Here is my code so far: 
  (Encryption)</p>
  
  <pre><code>string file = "...";
  string fileEncrypted = "...";
  
  Botan::LibraryInitializer init;
  
  string passphrase = "password";
  AutoSeeded_RNG rng;
  S2K* s2k = get_s2k("PBKDF2(SHA-256)");
  s2k-&gt;set_iterations(4049);
  
  SecureVector&lt;byte&gt; key_and_IV = s2k-&gt;derive_key(48, passphrase).bits_of();
  SymmetricKey key(key_and_IV, 32);
  InitializationVector iv(key_and_IV +32, 16);
  
  std::ifstream in(file, std::ios::binary);
  std::ofstream out(fileEncrypted, std::ios::binary);
  
  Pipe pipe(get_cipher("AES-256/CBC", key, iv,ENCRYPTION),new DataSink_Stream(out));
  pipe.start_msg();
  in &gt;&gt; pipe;
  pipe.end_msg();
  </code></pre>