# Trouble with ActiveSupport::MessageEncryptor::InvalidMessage in plugin

**URL:** <https://meta.discourse.org/t/trouble-with-activesupport-invalidmessage-in-plugin/229957>\
**Category:** Development\
**Created:** [June 14, 2022, 5:55pm UTC](https://meta.discourse.org/t/trouble-with-activesupport-invalidmessage-in-plugin/229957 "2022-06-14T17:55:42Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Post date:** [June 21, 2022, 2:46pm UTC](https://meta.discourse.org/t/trouble-with-activesupport-invalidmessage-in-plugin/229957/7 "2022-06-21T14:46:50Z")

</div>

I needed to add the old cipher here:

```
k = ActiveSupport::MessageEncryptor.new(KEY, cipher: "aes-256-cbc")

```

I still don’t understand why the two instances that both claim to be running 7.0.3 have different results, but a good RTFM of the upgrade docs was a big help. Thanks, Gerhard! It was the nudge I needed.

---

_[View the full topic](https://meta.discourse.org/t/trouble-with-activesupport-invalidmessage-in-plugin/229957)._
