# Storing secure information

**URL:** <https://forums.digi.com/t/storing-secure-information/2950>\
**Category:** Python\
**Created:** [July 28, 2009, 12:42pm UTC](https://forums.digi.com/t/storing-secure-information/2950 "2009-07-28T12:42:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Red0x](https://avatars.discourse-cdn.com/v4/letter/r/e495f1/32.png) [@Red0x](https://forums.digi.com/u/Red0x)\
**Post date:** [July 28, 2009, 12:42pm UTC](https://forums.digi.com/t/storing-secure-information/2950/1 "2009-07-28T12:42:30Z")

</div>

What is the best way to store secure information on the gateway? For example, if a password for an e-mail account needs to be stored.

Private key encryption would be the easiest but then where do you store the private key? Public key encryption will require internet access to a public key store, which won’t always be available since they gateway could be on a LAN.

Are there any python libraries that could help? I found a few but they seem to be outdated/abandoned.
