# AES256 CBC encryption returning empty string

**URL:** <https://forum.elixirforum.com/t/aes256-cbc-encryption-returning-empty-string/70322>\
**Category:** Questions\
**Tags:** erlang, crypto\
**Created:** [April 5, 2025, 4:32pm UTC](https://forum.elixirforum.com/t/aes256-cbc-encryption-returning-empty-string/70322 "2025-04-05T16:32:51Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![D4no0](https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/d4no0/32/33624_2.png) [@D4no0](https://forum.elixirforum.com/u/D4no0)\
**Post date:** [April 5, 2025, 5:21pm UTC](https://forum.elixirforum.com/t/aes256-cbc-encryption-returning-empty-string/70322/2 "2025-04-05T17:21:30Z")

</div>

> [@tkuehn](#):
>
> `:crypto.crypto_one_time(:aes_256_cbc, key, iv, "Plaintext", true)`

I am not familiar with how this API works, but is the third parameter `Plaintext` a valid one?

---

_[View the full topic](https://forum.elixirforum.com/t/aes256-cbc-encryption-returning-empty-string/70322)._
