1

Im building a secure messaging system based on ejabberd server. But I have realized ejabberd (mod_mam module) stores message archive at barely plain text. If database will be stolen (some kind) chats of all my users will be compromised. How can I enable stored messages encryption?

lovesuper
  • 323
  • 3
  • 12

2 Answers2

2

mod_mam or ejabberd do not support anything like that. You can configure ejabberd to use an external SQL database, if that helps you. Or you can tell your users to use client-2-client encryption...

Badlop
  • 3,840
  • 1
  • 8
  • 9
1

If you want to encrypt your data at rest, you can rely on the database features. For example, you can leverage pgcrypto for Postgres: https://www.postgresql.org/docs/current/pgcrypto.html

Mickaël Rémond
  • 9,035
  • 1
  • 24
  • 44