title: Crypt error - 'MAC is invalid.'
body: <p>A site I am developing includes a messaging system. I am encrypting messages in the table using <code>Crypt::()</code>. A user received a message and this error was displayed: </p>
  
  <pre><code>exception 'Illuminate\Contracts\Encryption\DecryptException' with message 'MAC is invalid.' 
  in /home/forge/cvahimt.org/releases/20150601155111/vendor/laravel/framework/src/Illuminate/Encryption/Encrypter.php:147
  </code></pre>
  
  <p>I am encrypting the message like so:</p>
  
  <pre><code>// Message
          $message = Message::create(
              [
                  'thread_id' =&gt; $thread-&gt;id,
                  'user_id' =&gt; Auth::user()-&gt;id,
                  'body' =&gt; Crypt::encrypt($input['message']),
              ]
          );
  </code></pre>
  
  <p>The app key is set in the <code>.env</code> file and had not been changed, the message was sent just prior to the error occurring. The <code>body</code> column in the table is of type <code>TEXT</code>.</p>
  
  <p>Any idea what might be causing this?</p>