# Retrieve passwords stored for OPC connections

**URL:** <https://forum.inductiveautomation.com/t/retrieve-passwords-stored-for-opc-connections/109372>\
**Category:** Ignition\
**Tags:** opcua\
**Created:** [August 5, 2025, 7:51am UTC](https://forum.inductiveautomation.com/t/retrieve-passwords-stored-for-opc-connections/109372 "2025-08-05T07:51:31Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jules\_Lalu](https://avatars.discourse-cdn.com/v4/letter/j/47e85d/32.png) [@Jules\_Lalu](https://forum.inductiveautomation.com/u/Jules_Lalu)\
**Post date:** [August 5, 2025, 7:51am UTC](https://forum.inductiveautomation.com/t/retrieve-passwords-stored-for-opc-connections/109372/1 "2025-08-05T07:51:31Z")

</div>

I am looking for a way of retrieving authentication information for OPC connections I have configured

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/a/2/a242568d35fefd90256b127a637d28a6261f7154.png)  
Is there somewhere I could recover the password for an OPC connection I have configured ?

Thank you in advance for your help !

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [August 5, 2025, 11:05am UTC](https://forum.inductiveautomation.com/t/retrieve-passwords-stored-for-opc-connections/109372/2 "2025-08-05T11:05:55Z")

</div>

Do you need to do this one time or regularly as part of a script?

---

<div class="post-metadata">

**Author:** ![Jules\_Lalu](https://avatars.discourse-cdn.com/v4/letter/j/47e85d/32.png) [@Jules\_Lalu](https://forum.inductiveautomation.com/u/Jules_Lalu)\
**Post date:** [August 5, 2025, 12:11pm UTC](https://forum.inductiveautomation.com/t/retrieve-passwords-stored-for-opc-connections/109372/3 "2025-08-05T12:11:49Z")

</div>

It would be a one time thing !

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [August 5, 2025, 12:15pm UTC](https://forum.inductiveautomation.com/t/retrieve-passwords-stored-for-opc-connections/109372/4 "2025-08-05T12:15:22Z")

</div>

Well the easiest thing would be to use Kindling or any other SQLite DB viewer to open the config.idb file and look at the passwords in the "OpcUaConnectionSettings" table. The password should be stored as a string of hex encoded characters.

Then you can write a script like this:

```python
from com.inductiveautomation.ignition.common import GatewaySec

# replace with value from DB
print GatewaySec.decrypt("ABCDABCDABCD")

```

---

<div class="post-metadata">

**Author:** ![Jules\_Lalu](https://avatars.discourse-cdn.com/v4/letter/j/47e85d/32.png) [@Jules\_Lalu](https://forum.inductiveautomation.com/u/Jules_Lalu)\
**Post date:** [August 5, 2025, 2:47pm UTC](https://forum.inductiveautomation.com/t/retrieve-passwords-stored-for-opc-connections/109372/5 "2025-08-05T14:47:36Z")

</div>

It was exactly what I was looking for, thank you very much Kevin !
