# Local messages management

**URL:** <https://forum.jami.net/t/local-messages-management/423>\
**Category:** Security and Privacy\
**Created:** [January 26, 2021, 5:09pm UTC](https://forum.jami.net/t/local-messages-management/423 "2021-01-26T17:09:47Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![jamiboy](https://forum.jami.net/user_avatar/forum.jami.net/jamiboy/32/102_2.png) [@jamiboy](https://forum.jami.net/u/jamiboy)\
**Post date:** [January 26, 2021, 5:09pm UTC](https://forum.jami.net/t/local-messages-management/423/1 "2021-01-26T17:09:47Z")

</div>

Hi there,  
are the local messages encrypted? messages both sent and received

---

<div class="post-metadata">

**Author:** ![wrycode](https://forum.jami.net/letter_avatar_proxy/v4/letter/w/ac91a4/32.png) [@wrycode](https://forum.jami.net/u/wrycode)\
**Post date:** [January 27, 2021, 3:13pm UTC](https://forum.jami.net/t/local-messages-management/423/2 "2021-01-27T15:13:30Z")

</div>

Hi @jamiboy, no, I think they are stored unencrypted in an SQLite database. For instance, on Linux I think the directory is `~/.local/share/jami`.

---

<div class="post-metadata">

**Author:** ![M1k4](https://forum.jami.net/letter_avatar_proxy/v4/letter/m/d2c977/32.png) [@M1k4](https://forum.jami.net/u/M1k4)\
**Post date:** [January 27, 2021, 7:48pm UTC](https://forum.jami.net/t/local-messages-management/423/3 "2021-01-27T19:48:55Z")

</div>

I thought everything was encrypted when you use a password on your account.  
But never check it , wil look at my laptop this week

---

<div class="post-metadata">

**Author:** ![jamiboy](https://forum.jami.net/user_avatar/forum.jami.net/jamiboy/32/102_2.png) [@jamiboy](https://forum.jami.net/u/jamiboy)\
**Post date:** [January 28, 2021, 5:27pm UTC](https://forum.jami.net/t/local-messages-management/423/4 "2021-01-28T17:27:57Z")

</div>

why this design? isn’t safer to use the SQLCipher?

---

<div class="post-metadata">

**Author:** ![jamiboy](https://forum.jami.net/user_avatar/forum.jami.net/jamiboy/32/102_2.png) [@jamiboy](https://forum.jami.net/u/jamiboy)\
**Post date:** [January 28, 2021, 5:29pm UTC](https://forum.jami.net/t/local-messages-management/423/5 "2021-01-28T17:29:16Z")

</div>

and if there isn’t a password will be all clear text?  
Check your client please

---

<div class="post-metadata">

**Author:** ![wrycode](https://forum.jami.net/letter_avatar_proxy/v4/letter/w/ac91a4/32.png) [@wrycode](https://forum.jami.net/u/wrycode)\
**Post date:** [January 28, 2021, 11:30pm UTC](https://forum.jami.net/t/local-messages-management/423/6 "2021-01-28T23:30:59Z")

</div>

I forgot about encrypting with a password like @M1k4 said. I just tried it with a new account and the conversations in the `history.db` sqlite database are still unencrypted.

In the future, with swarms, conversations will be stored in a custom format that uses git, so the encryption will work differently.

---

<div class="post-metadata">

**Author:** ![mickymouse](https://forum.jami.net/letter_avatar_proxy/v4/letter/m/b782af/32.png) [@mickymouse](https://forum.jami.net/u/mickymouse)\
**Post date:** [February 8, 2021, 5:22pm UTC](https://forum.jami.net/t/local-messages-management/423/7 "2021-02-08T17:22:36Z")

</div>

I looked around, and under the directory ~/.local/share/jami. There are vcard or vcf files with user names and phone numbers (in case of SIP), plain text.

I confirm, the histry.db databases found in the jami directory are sqlite and messages and call history appear in plain text.

Did not find any password options in the Linux Jami I am using.

---

<div class="post-metadata">

**Author:** ![M1k4](https://forum.jami.net/letter_avatar_proxy/v4/letter/m/d2c977/32.png) [@M1k4](https://forum.jami.net/u/M1k4)\
**Post date:** [February 10, 2021, 1:21pm UTC](https://forum.jami.net/t/local-messages-management/423/8 "2021-02-10T13:21:39Z")

</div>

The password option do you found when you create a account.  
But @wrycode did try it , it is not encrypt de history.db

---

<div class="post-metadata">

**Author:** ![mickymouse](https://forum.jami.net/letter_avatar_proxy/v4/letter/m/b782af/32.png) [@mickymouse](https://forum.jami.net/u/mickymouse)\
**Post date:** [February 16, 2021, 8:15pm UTC](https://forum.jami.net/t/local-messages-management/423/9 "2021-02-16T20:15:53Z")

</div>

That’s awesome. I used to use git to update my servers, awesome way to deploy, very efficient. I could see it distributing messages efficiently. Curious to see how it will work.

---

<div class="post-metadata">

**Author:** ![wrycode](https://forum.jami.net/letter_avatar_proxy/v4/letter/w/ac91a4/32.png) [@wrycode](https://forum.jami.net/u/wrycode)\
**Post date:** [February 17, 2021, 11:42pm UTC](https://forum.jami.net/t/local-messages-management/423/10 "2021-02-17T23:42:16Z")

</div>

I did some more reading. The password is used to encrypt your archive.gz file, which contains your account certificates (plus lots of other stuff). It is not used to encrypt conversation history.

@mickymouse yeah it’s cool. There are some details at [2.3. Swarm · Wiki · savoirfairelinux / jami-project · GitLab](https://git.jami.net/savoirfairelinux/ring-project/-/wikis/technical/2.3.-Swarm) and [Swarm: a new generation of group conversations](https://jami.net/swarm-introducing-a-new-generation-of-group-conversations/#under-the-hood) if you’re curious.

---

<div class="post-metadata">

**Author:** ![boxedup](https://forum.jami.net/letter_avatar_proxy/v4/letter/b/b9e5f3/32.png) [@boxedup](https://forum.jami.net/u/boxedup)\
**Post date:** [February 22, 2021, 2:03am UTC](https://forum.jami.net/t/local-messages-management/423/11 "2021-02-22T02:03:42Z")

</div>

What i assumed was jami is e2ee like signal where the signal database on the local device is encrypted.  
With the conversation history database in cleartext, does that mean other apps can scan and read the jami msgs?  
Will jami devs encrypt the conversation history database soon if ever?

---

<div class="post-metadata">

**Author:** ![wrycode](https://forum.jami.net/letter_avatar_proxy/v4/letter/w/ac91a4/32.png) [@wrycode](https://forum.jami.net/u/wrycode)\
**Post date:** [February 23, 2021, 12:44pm UTC](https://forum.jami.net/t/local-messages-management/423/12 "2021-02-23T12:44:03Z")

</div>

Hi @boxedup, Jami is e2ee but this is unrelated to encryption of the conversation history. To meaningfully encrypt the history we would need to ask for a passphrase every time the user starts the app. Some people might like this option, so there is potential to add it once the next generation of conversations is released. For now, the password only encrypts your Jami account. (You’d need the password to link a new device, for example.)

If you use any other app, e.g. Signal, without entering a PIN every time you open it: if you can view your message history, then it is not meaningfully encrypted. Jami is the same.

All platforms allow you to have system-level encryption (which protects you if your device is seized), including iOS and Android by default.

---

<div class="post-metadata">

**Author:** ![boxedup](https://forum.jami.net/letter_avatar_proxy/v4/letter/b/b9e5f3/32.png) [@boxedup](https://forum.jami.net/u/boxedup)\
**Post date:** [February 25, 2021, 1:10am UTC](https://forum.jami.net/t/local-messages-management/423/13 "2021-02-25T01:10:18Z")

</div>

> [@wrycode](#):
>
> If you use any other app, e.g. Signal, without entering a PIN every time you open it: if you can view your message history, then it is not meaningfully encrypted. Jami is the same.

Not sure what you mean here. My understanding is, no other apps can read inside signal database when its idle or being actively used. Is that is same for jami, where no other app can read jami history when idle or actively being used? thanks.

---

<div class="post-metadata">

**Author:** ![wrycode](https://forum.jami.net/letter_avatar_proxy/v4/letter/w/ac91a4/32.png) [@wrycode](https://forum.jami.net/u/wrycode)\
**Post date:** [February 25, 2021, 3:17am UTC](https://forum.jami.net/t/local-messages-management/423/14 "2021-02-25T03:17:36Z")

</div>

The sqlite Jami message database is not encrypted on Linux, and I suspect it’s the same for macOS and Windows. Maybe someone more knowledgeable can let us know whether the Android/iOS apps encrypt the message history. @sblin?

The purpose of apps like Signal and Jami is to secure your communications, not your local storage. Usually this is left to other OS software.

As an example, it’s easy to access the full message history of Signal desktop. For Android, Signal encrypts the message history but it’s still trivial to access it if you have access to the device.

For any app that stores persistent data, unless you enter a passphrase _every time you open the app_, the encryption is mostly a gimmick, because the encryption key must be stored somewhere else on the device.

---

<div class="post-metadata">

**Author:** ![wrycode](https://forum.jami.net/letter_avatar_proxy/v4/letter/w/ac91a4/32.png) [@wrycode](https://forum.jami.net/u/wrycode)\
**Post date:** [February 25, 2021, 3:54am UTC](https://forum.jami.net/t/local-messages-management/423/15 "2021-02-25T03:54:56Z")

</div>

(It would be great to have the option to encrypt the conversation history once we transition to swarms. It’s not a bad thing at all.)

In general, access permissions and local storage encryption are OS-specific things unless we ask for a passphrase from the user and encrypt the data manually.

Also I’m just another user, so my views don’t represent the Jami developers or SFL employees.

---

<div class="post-metadata">

**Author:** ![wrycode](https://forum.jami.net/letter_avatar_proxy/v4/letter/w/ac91a4/32.png) [@wrycode](https://forum.jami.net/u/wrycode)\
**Post date:** [February 25, 2021, 11:59pm UTC](https://forum.jami.net/t/local-messages-management/423/16 "2021-02-25T23:59:37Z")

</div>

If we implement history encryption as part of the daemon we would want to use the Android and iOS equivalent of [TPM](https://wiki.archlinux.org/index.php/Trusted_Platform_Module). For Android it’s called TEE and for iOS it’s called the Secure Enclave. I thought this [stackexchange answer](https://security.stackexchange.com/a/244922) was pretty illuminating.
