# \#encryption

**URL:** https://forum.elixirforum.com/tag/encryption/722.md

[Latest](https://forum.elixirforum.com/latest.md) · [Categories](https://forum.elixirforum.com/categories.md) · [Tags](https://forum.elixirforum.com/tags.md)

---

## [KMS - an Elixir key-management toolkit packaged as one OTP application](https://forum.elixirforum.com/t/kms-an-elixir-key-management-toolkit-packaged-as-one-otp-application/76968)

<div class="topic-metadata">

**Author:** [@Overbryd](https://forum.elixirforum.com/u/Overbryd)\
**Replies:** 0\
**Last updated:** [October 7, 2026, 3:17pm UTC](https://forum.elixirforum.com/t/kms-an-elixir-key-management-toolkit-packaged-as-one-otp-application/76968 "2026-10-07T15:17:15Z")

</div>

Hi, I am very happy to have released {:kms, "~\> 0.1.0"}. It is my contribution to provide wrapped key encryption as a service or library. The service is used in production for clients of mine, and with their permission…

---

## [Amarula - a WhatsApp client in pure Elixir](https://forum.elixirforum.com/t/amarula-a-whatsapp-client-in-pure-elixir/75977)

<div class="topic-metadata">

**Author:** [@tubedude](https://forum.elixirforum.com/u/tubedude)\
**Replies:** 0\
**Last updated:** [July 12, 2026, 4:51am UTC](https://forum.elixirforum.com/t/amarula-a-whatsapp-client-in-pure-elixir/75977 "2026-07-12T04:51:32Z")

</div>

Hi all, I’m posting a new thread for Amarula as the original went off topic and the mods have suggested I create a new one with that feedback in mind. Amarula is an unofficial WhatsApp client written in Elixir. It’s a p…

---

## [Metamorphic\_crypto - Post-quantum E2E encryption for Elixir (NaCl-compatible, precompiled NIFs)](https://forum.elixirforum.com/t/metamorphic-crypto-post-quantum-e2e-encryption-for-elixir-nacl-compatible-precompiled-nifs/75303)

<div class="topic-metadata">

**Author:** [@f0rest8](https://forum.elixirforum.com/u/f0rest8)\
**Replies:** 2\
**Last updated:** [May 13, 2026, 2:43pm UTC](https://forum.elixirforum.com/t/metamorphic-crypto-post-quantum-e2e-encryption-for-elixir-nacl-compatible-precompiled-nifs/75303 "2026-05-13T14:43:52Z")

</div>

Hey all — I open-sourced an Elixir library that a few people in my previous threads might find useful. metamorphic\_crypto is a NaCl-compatible encryption library for Elixir with post-quantum support, powered by a Rust N…

---

## [Metamorphic - Zero-knowledge, E2E encrypted habit tracker built with Phoenix LiveView](https://forum.elixirforum.com/t/metamorphic-zero-knowledge-e2e-encrypted-habit-tracker-built-with-phoenix-liveview/75037)

<div class="topic-metadata">

**Author:** [@f0rest8](https://forum.elixirforum.com/u/f0rest8)\
**Replies:** 2\
**Last updated:** [May 11, 2026, 3:32pm UTC](https://forum.elixirforum.com/t/metamorphic-zero-knowledge-e2e-encrypted-habit-tracker-built-with-phoenix-liveview/75037 "2026-05-11T15:32:36Z")

</div>

Hi everyone :waving\_hand:, I’d like to share Metamorphic, a zk habit and self-improvement tracker I’ve been building with Phoenix LiveView. The core idea: all personal data is encrypted client-side before it ever reach…

---

## [FeistelCipher, AshFeistelCipher - Encrypted integer IDs using Feistel cipher](https://forum.elixirforum.com/t/feistelcipher-ashfeistelcipher-encrypted-integer-ids-using-feistel-cipher/72880)

<div class="topic-metadata">

**Author:** [@jechol](https://forum.elixirforum.com/u/jechol)\
**Replies:** 12\
**Last updated:** [October 15, 2025, 9:16pm UTC](https://forum.elixirforum.com/t/feistelcipher-ashfeistelcipher-encrypted-integer-ids-using-feistel-cipher/72880 "2025-10-15T21:16:42Z")

</div>

I’m excited to share FeistelCipher and AshFeistelCipher, PostgreSQL-based libraries that provide encrypted integer IDs using the Feistel cipher algorithm. The Problem Sequential IDs (1, 2, 3…) expose sensitive business …

---

## [Ash encryption for resource attribute](https://forum.elixirforum.com/t/ash-encryption-for-resource-attribute/59197)

<div class="topic-metadata">

**Author:** [@kevinschweikert](https://forum.elixirforum.com/u/kevinschweikert)\
**Replies:** 7\
**Last updated:** [January 24, 2025, 12:08pm UTC](https://forum.elixirforum.com/t/ash-encryption-for-resource-attribute/59197 "2025-01-24T12:08:25Z")

</div>

Hi there, is there a recommended way to encrypt/decrypt fields of a resource to the database? I’ve used Cloak before, but i struggle to understand, how this would integrate into Ash. It would be really nice if it work…

---

## [Encrypting user provided Postgre creds & Encrypting dynamically created SQL tables](https://forum.elixirforum.com/t/encrypting-user-provided-postgre-creds-encrypting-dynamically-created-sql-tables/67860)

<div class="topic-metadata">

**Author:** [@kx1](https://forum.elixirforum.com/u/kx1)\
**Replies:** 2\
**Last updated:** [December 4, 2024, 9:39am UTC](https://forum.elixirforum.com/t/encrypting-user-provided-postgre-creds-encrypting-dynamically-created-sql-tables/67860 "2024-12-04T09:39:28Z")

</div>

Hello everyone, I’m creating an app which, has a part very similar to Airtable or Notion’s databases. The app allows users to create SQL tables through a GUI. These tables are either stored in our DB or in the user’s D…

---

## [How to protect all data in Postgresql? Encrypt everything?](https://forum.elixirforum.com/t/how-to-protect-all-data-in-postgresql-encrypt-everything/66981)

<div class="topic-metadata">

**Author:** [@ariandanim](https://forum.elixirforum.com/u/ariandanim)\
**Replies:** 2\
**Last updated:** [October 24, 2024, 5:36pm UTC](https://forum.elixirforum.com/t/how-to-protect-all-data-in-postgresql-encrypt-everything/66981 "2024-10-24T17:36:45Z")

</div>

Dear All Team, Due attacker Will always more ways to breach data, how to encrypt all data information every rows, because as I know, only password has encryption feature when in the database the password showing in rand…

---

## [Anyone built a Phoenix or LiveView app with client-side encryption?](https://forum.elixirforum.com/t/anyone-built-a-phoenix-or-liveview-app-with-client-side-encryption/66308)

<div class="topic-metadata">

**Author:** [@budgie](https://forum.elixirforum.com/u/budgie)\
**Replies:** 3\
**Last updated:** [September 26, 2024, 12:35pm UTC](https://forum.elixirforum.com/t/anyone-built-a-phoenix-or-liveview-app-with-client-side-encryption/66308 "2024-09-26T12:35:44Z")

</div>

Anyone have success doing this? What are you doing for key management on the client side and how does this work together with encrypted fields in Ecto? How do you manage keys when it comes to teams or organizations, so…

---

## [Announcing AshCloak, a small but powerful extension for attribute encryption!](https://forum.elixirforum.com/t/announcing-ashcloak-a-small-but-powerful-extension-for-attribute-encryption/63134)

<div class="topic-metadata">

**Author:** [@zachdaniel](https://forum.elixirforum.com/u/zachdaniel)\
**Replies:** 1\
**Last updated:** [April 26, 2024, 3:17pm UTC](https://forum.elixirforum.com/t/announcing-ashcloak-a-small-but-powerful-extension-for-attribute-encryption/63134 "2024-04-26T15:17:50Z")

</div>

AshCloak AshCloak is small but mighty! Simply configure the extension, and it will encrypt your attributes :partying\_face: Since an example is worth a thousand words, here is the example from our documentation: A co…

---

## [Noob attempt to translate Web Crypto API calls into Elixir](https://forum.elixirforum.com/t/noob-attempt-to-translate-web-crypto-api-calls-into-elixir/62383)

<div class="topic-metadata">

**Author:** [@schliemannw](https://forum.elixirforum.com/u/schliemannw)\
**Replies:** 1\
**Last updated:** [March 19, 2024, 12:58pm UTC](https://forum.elixirforum.com/t/noob-attempt-to-translate-web-crypto-api-calls-into-elixir/62383 "2024-03-19T12:58:10Z")

</div>

Hi, I’ve been trying to implement the following javascript code provided by Cloudflare to generate tokens to secure video streams (Secure your Stream Â· Cloudflare Stream docs) // Main function async function streamSig…

---

## [Encryption in Elixir's process messaging](https://forum.elixirforum.com/t/encryption-in-elixirs-process-messaging/61052)

<div class="topic-metadata">

**Author:** [@pablito](https://forum.elixirforum.com/u/pablito)\
**Replies:** 4\
**Last updated:** [January 17, 2024, 2:53pm UTC](https://forum.elixirforum.com/t/encryption-in-elixirs-process-messaging/61052 "2024-01-17T14:53:13Z")

</div>

Hi, we’re using libcluster + horde to manage process balancing of some genservers. So, we want to get the security right and have an encrypted communication between processes. I guess that horde messages aren’t so impor…

---

## [How to encrypt data using DES encryption CBC mode PKCS5P padding?](https://forum.elixirforum.com/t/how-to-encrypt-data-using-des-encryption-cbc-mode-pkcs5p-padding/60619)

<div class="topic-metadata">

**Author:** [@jerry](https://forum.elixirforum.com/u/jerry)\
**Replies:** 4\
**Last updated:** [January 5, 2024, 12:24pm UTC](https://forum.elixirforum.com/t/how-to-encrypt-data-using-des-encryption-cbc-mode-pkcs5p-padding/60619 "2024-01-05T12:24:39Z")

</div>

Hello, How do I encrypt data using DES encryption CBC mode PKCS5P padding? Thank you.

---

## [Is E2EE encryption a foolish idea for a LiveView app?](https://forum.elixirforum.com/t/is-e2ee-encryption-a-foolish-idea-for-a-liveview-app/56452)

<div class="topic-metadata">

**Author:** [@scoop](https://forum.elixirforum.com/u/scoop)\
**Replies:** 7\
**Last updated:** [June 13, 2023, 2:34pm UTC](https://forum.elixirforum.com/t/is-e2ee-encryption-a-foolish-idea-for-a-liveview-app/56452 "2023-06-13T14:34:30Z")

</div>

Dear community :waving\_hand:t2: I’ve got a few applications in mind for an industry that, like many other, tends to collect tremendously “juicy” (sensitive) data. There is a strong case to be made for applying end-to-e…

---

## [Issue with ExPublicKey Expublic.load()](https://forum.elixirforum.com/t/issue-with-expublickey-expublic-load/53620)

<div class="topic-metadata">

**Author:** [@bishen28](https://forum.elixirforum.com/u/bishen28)\
**Replies:** 5\
**Last updated:** [February 3, 2023, 1:09am UTC](https://forum.elixirforum.com/t/issue-with-expublickey-expublic-load/53620 "2023-02-03T01:09:00Z")

</div>

Hello guys i am stuck at an issue please help me :pray: :pray: :pray: for the biometric authentication in my app, from front-end i am getting public key, signature. for generating key pair, front end using this librar…

---

## [ES256 string encryption](https://forum.elixirforum.com/t/es256-string-encryption/51002)

<div class="topic-metadata">

**Author:** [@tedi](https://forum.elixirforum.com/u/tedi)\
**Replies:** 2\
**Last updated:** [October 14, 2022, 12:46pm UTC](https://forum.elixirforum.com/t/es256-string-encryption/51002 "2022-10-14T12:46:37Z")

</div>

Hello, I’m working on a simple ES256 string encryption, however I’m hitting a wall using JOSE (also tried doing it using Joken). I am trying to sign a url string to send to Apple’s static map snapshot service (found her…

---

## [End-to-end Encrypted Messaging with Ockam - and (smartphone-) Apps](https://forum.elixirforum.com/t/end-to-end-encrypted-messaging-with-ockam-and-smartphone-apps/43875)

<div class="topic-metadata">

**Author:** [@Sebb](https://forum.elixirforum.com/u/Sebb)\
**Replies:** 1\
**Last updated:** [May 15, 2022, 5:23am UTC](https://forum.elixirforum.com/t/end-to-end-encrypted-messaging-with-ockam-and-smartphone-apps/43875 "2022-05-15T05:23:31Z")

</div>

At ElixirConf there was this great talk about Intro to Ockam | Ockam This seems like exactly what I need, but I wonder how can a smartphone app participate in encrypted ockam communication? There seems to …

---

## [Storing API credentials in DB](https://forum.elixirforum.com/t/storing-api-credentials-in-db/46337)

<div class="topic-metadata">

**Author:** [@CherryPoppins](https://forum.elixirforum.com/u/CherryPoppins)\
**Replies:** 4\
**Last updated:** [March 2, 2022, 5:38pm UTC](https://forum.elixirforum.com/t/storing-api-credentials-in-db/46337 "2022-03-02T17:38:14Z")

</div>

Let’s say I have an app that handles ordering bubble gum for clients. Each client has their own API credentials for the bubble gum supplier. I handle placing orders for more bubble gum by sending an order request using t…

---

## [Porting one function from php to elixir](https://forum.elixirforum.com/t/porting-one-function-from-php-to-elixir/46235)

<div class="topic-metadata">

**Author:** [@naytro](https://forum.elixirforum.com/u/naytro)\
**Replies:** 10\
**Last updated:** [February 24, 2022, 11:57am UTC](https://forum.elixirforum.com/t/porting-one-function-from-php-to-elixir/46235 "2022-02-24T11:57:43Z")

</div>

Hi, Does anyone know how to port this line of code to elixir ? :slight\_smile: mcrypt\_decrypt(MCRYPT\_RIJNDAEL\_256, "secret012345678901112131", base64\_decode("EpbcxI+iu6kKVVDFUBSFc3EVGzS+dm9vMcVqImcCvEY="), MCRYPT\_MODE\_E…

---

## [Storing sensitive information in the database](https://forum.elixirforum.com/t/storing-sensitive-information-in-the-database/45432)

<div class="topic-metadata">

**Author:** [@acrolink](https://forum.elixirforum.com/u/acrolink)\
**Replies:** 5\
**Last updated:** [January 25, 2022, 7:02am UTC](https://forum.elixirforum.com/t/storing-sensitive-information-in-the-database/45432 "2022-01-25T07:02:25Z")

</div>

How to protect sensitive information (personal details and medical records) in database (PostgreSQL)? How to encrypt that data in the database and decrypt it only for authorized logged in users? Any libraries can help to…

---

## [One-off encryption?](https://forum.elixirforum.com/t/one-off-encryption/43282)

<div class="topic-metadata">

**Author:** [@dimitarvp](https://forum.elixirforum.com/u/dimitarvp)\
**Replies:** 19\
**Last updated:** [October 22, 2021, 9:23pm UTC](https://forum.elixirforum.com/t/one-off-encryption/43282 "2021-10-22T21:23:43Z")

</div>

Hey all, I am looking for a way to encode and then encrypt a payload that will later be passed to a webhook in the web app. We’re talking something like “put these two options in your config/config.exs and then call th…

---

## [Elixir Version of Javas Encrypted Class Files? -\> Securing Elixir Code](https://forum.elixirforum.com/t/elixir-version-of-javas-encrypted-class-files-securing-elixir-code/42961)

<div class="topic-metadata">

**Author:** [@EddTally](https://forum.elixirforum.com/u/EddTally)\
**Replies:** 8\
**Last updated:** [October 8, 2021, 4:41pm UTC](https://forum.elixirforum.com/t/elixir-version-of-javas-encrypted-class-files-securing-elixir-code/42961 "2021-10-08T16:41:26Z")

</div>

I have a Java class which is stored as an encrypted class for important security reasons then only decrypted at application startup, this is completed by various Java tools, I would like the same to happen to my Elixir M…

---

## [Create HS256 in linux command](https://forum.elixirforum.com/t/create-hs256-in-linux-command/41854)

<div class="topic-metadata">

**Author:** [@shahryarjb](https://forum.elixirforum.com/u/shahryarjb)\
**Replies:** 3\
**Last updated:** [August 23, 2021, 9:29pm UTC](https://forum.elixirforum.com/t/create-hs256-in-linux-command/41854 "2021-08-23T21:29:19Z")

</div>

Hello, I need to create HS256 to save this for encryption, in this elixir I can do it with: JOSE.JWS.generate\_key(%{"alg" =\> "HS256"}) |\> JOSE.JWK.to\_map |\> elem(1) but how can I do this in linux command? because I hav…

---

## [Symmetric encryption of persisted data with ExCrypto - feedback very welcome](https://forum.elixirforum.com/t/symmetric-encryption-of-persisted-data-with-excrypto-feedback-very-welcome/35811)

<div class="topic-metadata">

**Author:** [@slouchpie](https://forum.elixirforum.com/u/slouchpie)\
**Replies:** 8\
**Last updated:** [April 20, 2021, 3:48pm UTC](https://forum.elixirforum.com/t/symmetric-encryption-of-persisted-data-with-excrypto-feedback-very-welcome/35811 "2021-04-20T15:48:36Z")

</div>

Hi all, Today I had a problem that I needed to persist API keys from a 3rd party. I wanted to persist them in an encrypted way and I documented what I came up with: If any grizzled veterans on here have some spare ti…

---

## [Which library is the best for encryption in phoenix?](https://forum.elixirforum.com/t/which-library-is-the-best-for-encryption-in-phoenix/35905)

<div class="topic-metadata">

**Author:** [@greatisgreat](https://forum.elixirforum.com/u/greatisgreat)\
**Replies:** 13\
**Last updated:** [December 8, 2020, 4:16pm UTC](https://forum.elixirforum.com/t/which-library-is-the-best-for-encryption-in-phoenix/35905 "2020-12-08T16:16:35Z")

</div>

I would like to know which library is the best for encryption in phoenix or can i just use Plug.Crypto.MessageEncryptor? I want to encrypt a password that the user send us Thanks :slight\_smile:

---

## [Should i use other libraries over Plug.Crypto.MessageEncryptor for encryption](https://forum.elixirforum.com/t/should-i-use-other-libraries-over-plug-crypto-messageencryptor-for-encryption/35924)

<div class="topic-metadata">

**Author:** [@greatisgreat](https://forum.elixirforum.com/u/greatisgreat)\
**Replies:** 1\
**Last updated:** [December 2, 2020, 6:13am UTC](https://forum.elixirforum.com/t/should-i-use-other-libraries-over-plug-crypto-messageencryptor-for-encryption/35924 "2020-12-02T06:13:46Z")

</div>

I want to encrypt some passwords and store it in the database.Should i be using libraries like: argon2\_elixir bcrypt\_elixir pbkdf2\_elixir or Plug.Crypto.MessageEncryptor? If so why? Thanks :slight\_smile:

---

## [Trouble finding Whirlpool implementations](https://forum.elixirforum.com/t/trouble-finding-whirlpool-implementations/30474)

<div class="topic-metadata">

**Author:** [@thiagomajesk](https://forum.elixirforum.com/u/thiagomajesk)\
**Replies:** 1\
**Last updated:** [April 9, 2020, 1:38pm UTC](https://forum.elixirforum.com/t/trouble-finding-whirlpool-implementations/30474 "2020-04-09T13:38:48Z")

</div>

Cheers everyone! I’m finding incredibly hard to find a Whirlpool2 hashing implementation. Could someone point me in the right direction? I couldn’t find an Elixir library that supports it so far and the closest I got t…

---

## [How to encrypt file](https://forum.elixirforum.com/t/how-to-encrypt-file/17892)

<div class="topic-metadata">

**Author:** [@Packard\_Goose](https://forum.elixirforum.com/u/Packard_Goose)\
**Replies:** 6\
**Last updated:** [November 14, 2018, 11:28am UTC](https://forum.elixirforum.com/t/how-to-encrypt-file/17892 "2018-11-14T11:28:06Z")

</div>

How would I go about attempting to encrypt a file in elixir? I need to store some sensitive information in a text file such as a .dat but the information can only be decrypted if you have the passphrase to unlock the con…

---

## [Encrypt string with my key](https://forum.elixirforum.com/t/encrypt-string-with-my-key/18828)

<div class="topic-metadata">

**Author:** [@dersar00](https://forum.elixirforum.com/u/dersar00)\
**Replies:** 17\
**Last updated:** [March 29, 2019, 4:36pm UTC](https://forum.elixirforum.com/t/encrypt-string-with-my-key/18828 "2019-03-29T16:36:22Z")

</div>

Hello! I want to encrypt some string with my own key, how I can do it? I prefer to do it with some encryption technology that I can use to decrypt this in my js frontend.

---

## [Convert C# function to Elixir](https://forum.elixirforum.com/t/convert-c-function-to-elixir/17517)

<div class="topic-metadata">

**Author:** [@danish](https://forum.elixirforum.com/u/danish)\
**Replies:** 7\
**Last updated:** [October 30, 2018, 9:24am UTC](https://forum.elixirforum.com/t/convert-c-function-to-elixir/17517 "2018-10-30T09:24:19Z")

</div>

this is the function that I am trying to convert to Elixir: private static byte\[\] HashBody(string content) { var contentBytes = Encoding.UTF8.GetBytes(content); using (var provider = new SHA256Managed(…

[Next page](https://forum.elixirforum.com/tag/encryption/722.md?match_all_tags=true&page=1&tags%5B%5D=encryption)
