# Ruby code for decrypting the ZoomAppContext header fails

**URL:** <https://devforum.zoom.us/t/ruby-code-for-decrypting-the-zoomappcontext-header-fails/73073>\
**Category:** Zoom Apps\
**Created:** [July 27, 2022, 2:05pm UTC](https://devforum.zoom.us/t/ruby-code-for-decrypting-the-zoomappcontext-header-fails/73073 "2022-07-27T14:05:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![development4](https://avatars.discourse-cdn.com/v4/letter/d/848f3c/32.png) [@development4](https://devforum.zoom.us/u/development4)\
**Post date:** [July 27, 2022, 2:05pm UTC](https://devforum.zoom.us/t/ruby-code-for-decrypting-the-zoomappcontext-header-fails/73073/1 "2022-07-27T14:05:36Z")

</div>

The ruby code shown in the [Zoom Apps Context](https://marketplace.zoom.us/docs/zoom-apps/zoomappcontext/) page does not run.

It fails with two syntax errors. I believe it’s the way to slice the arrays for iv\_aad\_cipher\_text\_auth\_tag and aad\_cipher\_text\_auth\_tag. It’s using a syntax that does not exist in ruby.

---

<div class="post-metadata">

**Author:** ![MaxM](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/maxm/32/42303_2.png) [@MaxM](https://devforum.zoom.us/u/MaxM)\
**Post date:** [August 11, 2022, 6:28pm UTC](https://devforum.zoom.us/t/ruby-code-for-decrypting-the-zoomappcontext-header-fails/73073/2 "2022-08-11T18:28:34Z")

</div>

@development4 Thanks for bringing this up! Can you share the errors that you’re seeing?
