# How to recover gmail password from phone

**URL:** <https://forum.delta.chat/t/how-to-recover-gmail-password-from-phone/3067>\
**Category:** Mutual Help\
**Created:** [May 14, 2024, 12:37pm UTC](https://forum.delta.chat/t/how-to-recover-gmail-password-from-phone/3067 "2024-05-14T12:37:10Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![DeChatteer](https://forum.delta.chat/letter_avatar_proxy/v4/letter/d/a587f6/32.png) [@DeChatteer](https://forum.delta.chat/u/DeChatteer)\
**Post date:** [May 14, 2024, 12:37pm UTC](https://forum.delta.chat/t/how-to-recover-gmail-password-from-phone/3067/1 "2024-05-14T12:37:11Z")

</div>

Hi,  
I need some expert advice, on how to recover my gmail password from DC on my phone. The phone is not connected to a Google account.

I have been using DC now for more than 3 years and lost all the credentials for the gmail address I was using for nothing else but DC. Now I don’t want to loose the conversations after switching to a new mobile phone.

Thanks in advance

---

<div class="post-metadata">

**Author:** ![Raiden](https://forum.delta.chat/user_avatar/forum.delta.chat/raiden/32/2544_2.png) [@Raiden](https://forum.delta.chat/u/Raiden)\
**Post date:** [May 14, 2024, 1:28pm UTC](https://forum.delta.chat/t/how-to-recover-gmail-password-from-phone/3067/2 "2024-05-14T13:28:38Z")

</div>

Hello 👋,  
there are two options:

1. Transfer the account to DC-Desktop via backup or QR code. In this version it is possible to display the password.

2. Create a backup and open the SQLite database and search for the password there with a suitable tool like “DB Browser for SQLite” ([https://sqlitebrowser.org](https://sqlitebrowser.org)).

---

<div class="post-metadata">

**Author:** ![DeChatteer](https://forum.delta.chat/letter_avatar_proxy/v4/letter/d/a587f6/32.png) [@DeChatteer](https://forum.delta.chat/u/DeChatteer)\
**Post date:** [May 14, 2024, 1:49pm UTC](https://forum.delta.chat/t/how-to-recover-gmail-password-from-phone/3067/3 "2024-05-14T13:49:13Z")

</div>

Thank you for the quick answers! I’ll give it a try, and report back.

---

<div class="post-metadata">

**Author:** ![DeChatteer](https://forum.delta.chat/letter_avatar_proxy/v4/letter/d/a587f6/32.png) [@DeChatteer](https://forum.delta.chat/u/DeChatteer)\
**Post date:** [May 15, 2024, 6:36am UTC](https://forum.delta.chat/t/how-to-recover-gmail-password-from-phone/3067/4 "2024-05-15T06:36:29Z")

</div>

I chose method #2, did the back-up, got the file dc\_database\_backup.sqlite, which I opened in DB Browser.

I find strings like “configured\_send\_pw4/…, configured\_mail\_pw4/…, mail\_pw4/…” followed by a code, that resembles a password, but it is meaningless to me.

Where is the PW stored? Where do I have to look for?

---

<div class="post-metadata">

**Author:** ![Raiden](https://forum.delta.chat/user_avatar/forum.delta.chat/raiden/32/2544_2.png) [@Raiden](https://forum.delta.chat/u/Raiden)\
**Post date:** [May 15, 2024, 9:07am UTC](https://forum.delta.chat/t/how-to-recover-gmail-password-from-phone/3067/5 "2024-05-15T09:07:02Z")

</div>

Method #1 would have been easiest. 😉

Method #2:

- Open database with the “DB Browser for SQLite”

- Tab “Browse Data”

- Select Table “config”

The table has three columns: id, keyname and value.  
You can find the password in row #3:

- id: 4

- keyname: mail\_pw

- value: your password

---

<div class="post-metadata">

**Author:** ![DeChatteer](https://forum.delta.chat/letter_avatar_proxy/v4/letter/d/a587f6/32.png) [@DeChatteer](https://forum.delta.chat/u/DeChatteer)\
**Post date:** [May 15, 2024, 12:38pm UTC](https://forum.delta.chat/t/how-to-recover-gmail-password-from-phone/3067/6 "2024-05-15T12:38:00Z")

</div>

Thanks a lot for the details, Raiden!

I found the string now with method #2 and reconfirmed it with method #1. I had already found the mail\_pw string with Notepad++ before, but did not recognize it as a PW. As I usually use much shorter PWs, it looked unfamiliar to me.

Strange enough, the string I found is not accepted by Google when I try to login the account via the web interface.

How can I derive my account PW from that string?

---

<div class="post-metadata">

**Author:** ![Raiden](https://forum.delta.chat/user_avatar/forum.delta.chat/raiden/32/2544_2.png) [@Raiden](https://forum.delta.chat/u/Raiden)\
**Post date:** [May 15, 2024, 1:13pm UTC](https://forum.delta.chat/t/how-to-recover-gmail-password-from-phone/3067/7 "2024-05-15T13:13:21Z")

</div>

> [@DeChatteer](#):
>
> Strange enough, the string I found is not accepted by Google when I try to login the account via the web interface.

This is the app password. Sorry, I completely forgot that Gmail requires to set up a second password for alternative mail apps. Can’t you just use the _forgot password feature_ on the Gmail page to reset your normal password?

> [@DeChatteer](#):
>
> I have been using DC now for more than 3 years and lost all the credentials for the gmail address I was using for nothing else but DC. Now I don’t want to loose the conversations after switching to a new mobile phone.

Can you no longer access your messages with DC and the app password?

---

<div class="post-metadata">

**Author:** ![DeChatteer](https://forum.delta.chat/letter_avatar_proxy/v4/letter/d/a587f6/32.png) [@DeChatteer](https://forum.delta.chat/u/DeChatteer)\
**Post date:** [May 15, 2024, 1:56pm UTC](https://forum.delta.chat/t/how-to-recover-gmail-password-from-phone/3067/8 "2024-05-15T13:56:38Z")

</div>

Everything is fine with DC anyways. I imagined, the PW I derived from the back-up would be related to the OAUTH thing.

Originally, I intended to only use this completely anonymous gmail to play with DC. Now after using DC smoothly for years, I thought I’d stay with it and extend the use of the established G account. Unfortunately, in the meantime I lost the piece of paper where I scribbled down the account credentials like PW and recovery eMail long ago… So far little luck with G recovery.

---

<div class="post-metadata">

**Author:** ![Raiden](https://forum.delta.chat/user_avatar/forum.delta.chat/raiden/32/2544_2.png) [@Raiden](https://forum.delta.chat/u/Raiden)\
**Post date:** [May 15, 2024, 3:40pm UTC](https://forum.delta.chat/t/how-to-recover-gmail-password-from-phone/3067/9 "2024-05-15T15:40:39Z")

</div>

But at least you have all your messages in DC?  
This means you can always reload the backup and read the messages, even without direct access to the mailbox. Maybe it’s worth trying to just let gmail send you an email to reset the password. Perhaps it pops up in an account that you have set up in your mail client?

---

<div class="post-metadata">

**Author:** ![DeChatteer](https://forum.delta.chat/letter_avatar_proxy/v4/letter/d/a587f6/32.png) [@DeChatteer](https://forum.delta.chat/u/DeChatteer)\
**Post date:** [May 15, 2024, 3:53pm UTC](https://forum.delta.chat/t/how-to-recover-gmail-password-from-phone/3067/10 "2024-05-15T15:53:28Z")

</div>

Yes, right, the back-up is fine and can be re-installed any time, as seen trying method 1# : )  
If I knew, how I could have G sending a recovery mail to the gmail address I use for DC, that would be brillant!

Anyway, how is the OAUTH PW generated from the G-account PW? Is that reversible?

---

<div class="post-metadata">

**Author:** ![Raiden](https://forum.delta.chat/user_avatar/forum.delta.chat/raiden/32/2544_2.png) [@Raiden](https://forum.delta.chat/u/Raiden)\
**Post date:** [May 15, 2024, 5:52pm UTC](https://forum.delta.chat/t/how-to-recover-gmail-password-from-phone/3067/11 "2024-05-15T17:52:50Z")

</div>

> [@DeChatteer](#):
>
> Anyway, how is the OAUTH PW generated from the G-account PW? Is that reversible?

I don’t know and I’m not sure if DC even supports OAUTH.

---

<div class="post-metadata">

**Author:** ![WofWca](https://forum.delta.chat/user_avatar/forum.delta.chat/wofwca/32/1702_2.png) [@WofWca](https://forum.delta.chat/u/WofWca)\
**Post date:** [May 15, 2024, 7:07pm UTC](https://forum.delta.chat/t/how-to-recover-gmail-password-from-phone/3067/12 "2024-05-15T19:07:17Z")

</div>

To be precise, it might be a an “app password” instead of an OAuth password (token?). See [the instruction for setting up a Google account for Delta Chat](https://providers.delta.chat/gmail).  
Either way, I’m pretty sure recovering the “master password” from an “app password” or an OAuth password is impossible (at least that’s how I believe it should be).

Now

- as @Raiden said, you can “Add second device” or “restore from backup” on your second device. This should be enough to continue using the account on any device.
- You can try searching for a way to log in normally to your account with the app password and change the main password.
- You can try reaching out to Google’s support.

If none of the above is satisfactory, consider beginning the a migration to a new account, to reduce the pain of the potential loss of the original account.

---

<div class="post-metadata">

**Author:** ![DeChatteer](https://forum.delta.chat/letter_avatar_proxy/v4/letter/d/a587f6/32.png) [@DeChatteer](https://forum.delta.chat/u/DeChatteer)\
**Post date:** [May 16, 2024, 2:27pm UTC](https://forum.delta.chat/t/how-to-recover-gmail-password-from-phone/3067/13 "2024-05-16T14:27:52Z")

</div>

Thanks for your constructive answers and help!

On one hand I was impressed, how smooth and easy it was to do a back-up and reinstall it to a second device.

On the other hand it really scares me, how easy it is to get hold of your private information without any hurdles. If your phone gets into the wrong hands or you fall victim of a spyware attack, your done…  
In that respect, I can no longer consider DC a secure app.

There need to be significant improvements!

---

<div class="post-metadata">

**Author:** ![Raiden](https://forum.delta.chat/user_avatar/forum.delta.chat/raiden/32/2544_2.png) [@Raiden](https://forum.delta.chat/u/Raiden)\
**Post date:** [May 16, 2024, 3:59pm UTC](https://forum.delta.chat/t/how-to-recover-gmail-password-from-phone/3067/14 "2024-05-16T15:59:44Z")

</div>

> [@DeChatteer](#):
>
> On the other hand it really scares me, how easy it is to get hold of your private information without any hurdles. If your phone gets into the wrong hands or you fall victim of a spyware attack, your done…  
> In that respect, I can no longer consider DC a secure app.

If an attacker gets access to your mobile phone, everything is too late anyway, no matter which messenger you use. Even password protection for the app itself offers little additional security in the real world. In addition, backups should only be stored in safe locations.

---

<div class="post-metadata">

**Author:** ![DeChatteer](https://forum.delta.chat/letter_avatar_proxy/v4/letter/d/a587f6/32.png) [@DeChatteer](https://forum.delta.chat/u/DeChatteer)\
**Post date:** [May 17, 2024, 11:45am UTC](https://forum.delta.chat/t/how-to-recover-gmail-password-from-phone/3067/15 "2024-05-17T11:45:11Z")

</div>

> [@Raiden](#):
>
> If an attacker gets access to your mobile phone, everything is too late

Maybe, but that should not be taken as an excuse, not to make it most difficult for attackers, than it is now. FBI-, russian chinese, israelian etc hackers, are laughing their heads off about a clear-text DB.

> [@Raiden](#):
>
> backups should only be stored in safe locations

Certainly true, but I want my messenger app to be that safe place, at least as safe as possible.

---

<div class="post-metadata">

**Author:** ![r10s](https://forum.delta.chat/user_avatar/forum.delta.chat/r10s/32/1513_2.png) [@r10s](https://forum.delta.chat/u/r10s)\
**Post date:** [October 6, 2026, 3:14pm UTC](https://forum.delta.chat/t/how-to-recover-gmail-password-from-phone/3067/16 "2026-10-06T15:14:45Z")

</div>


