title: How should I recode my Phalcon v2 PhalconCrypt php to work with v3?
body: <p>I currently have this in my Phalcon v2 code:</p>
  <pre><code>$di-&gt;setShared('crypt', function () {
      $crypt = new PhalconCrypt();
      $crypt-&gt;setMode(MCRYPT_MODE_CFB);
      $crypt-&gt;setKey('mysecretkey');
      return $crypt;
  });
  </code></pre>
  <p>I am getting this error when running it under Phalcon 3.4.5</p>
  <pre><code>PHP Fatal error:  Uncaught Error: Call to undefined method Phalcon\Crypt::setMode()
  </code></pre>
  <p>How would I recode it for Phalcon 3.4.5? It isn't clear to me from the documentation how I set the encryption mode in the new version.</p>