# Saving CKKS Decryption Step by Step

**URL:** <https://openfhe.discourse.group/t/saving-ckks-decryption-step-by-step/2005>\
**Category:** Library Questions\
**Created:** [April 20, 2025, 9:17pm UTC](https://openfhe.discourse.group/t/saving-ckks-decryption-step-by-step/2005 "2025-04-20T21:17:17Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![seyda](https://yyz1.discourse-cdn.com/flex031/user_avatar/openfhe.discourse.group/seyda/32/397_2.png) [@seyda](https://openfhe.discourse.group/u/seyda)\
**Post date:** [April 21, 2025, 1:09pm UTC](https://openfhe.discourse.group/t/saving-ckks-decryption-step-by-step/2005/2 "2025-04-21T13:09:44Z")

</div>

In the Decrypt() function in [cryptocontext.cpp](https://github.com/openfheorg/openfhe-development/blob/6bcca756e9d52b4db3dd2168414df8a7316b1a61/src/pke/lib/cryptocontext.cpp#L563), you can see the decryption result is first created as a Plaintext variable (line 577) and then is decoded in between the lines 582-607. To print out the content of a plaintext, you can take a look at [Printing plaintext polynomial coefficients vs message vector slots - #2 by Caesar](https://openfhe.discourse.group/t/printing-plaintext-polynomial-coefficients-vs-message-vector-slots/1498/2)

---

_[View the full topic](https://openfhe.discourse.group/t/saving-ckks-decryption-step-by-step/2005)._
