# OpenFHE : a question about Plaintext

**URL:** <https://openfhe.discourse.group/t/openfhe-a-question-about-plaintext/631>\
**Category:** Library Questions\
**Created:** [June 14, 2023, 3:00pm UTC](https://openfhe.discourse.group/t/openfhe-a-question-about-plaintext/631 "2023-06-14T15:00:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lola](https://avatars.discourse-cdn.com/v4/letter/l/ed655f/32.png) [@Lola](https://openfhe.discourse.group/u/Lola)\
**Post date:** [June 14, 2023, 3:00pm UTC](https://openfhe.discourse.group/t/openfhe-a-question-about-plaintext/631/1 "2023-06-14T15:00:14Z")

</div>

Hi,  
I have a question regarding plaintexts in openfhe : once I decrypt and I get a Plaintext, how can I go back to a vector ?  
Thanks !

---

<div class="post-metadata">

**Author:** ![narger](https://yyz1.discourse-cdn.com/flex031/user_avatar/openfhe.discourse.group/narger/32/420_2.png) [@narger](https://openfhe.discourse.group/u/narger)\
**Post date:** [June 14, 2023, 3:10pm UTC](https://openfhe.discourse.group/t/openfhe-a-question-about-plaintext/631/2 "2023-06-14T15:10:14Z")

</div>

```auto
Plaintext result;
context->Decrypt(key_pair.secretKey, c, &result);
//result->SetSlots(?); //here you set how many slot you used
vector<double> v = result->GetRealPackedValue();

```

(I assume you are working with reals)
