How can I store password securely in MySQL and authenticate to external services

samjones39

Currently I have a PHP script that connect to a mail server via IMAP and parse new emails to MySQL. credentials to connect to the mail server are stored in MySQL using plain text, is there a way I can encrypt the password that is stored in MySQL?

Bill Karwin

MySQL supports a AES_ENCRYPT() function. You can encrypt as you INSERT it to the database, and decrypt it as you SELECT it back out.

Read the documentation I linked to for examples.

Then make sure you use port 993 for a TLS encrypted connection to the IMAP server when you imap_open() with the plaintext password.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

How can I store password securely in MySQL and authenticate to external services

From Dev

Can I securely store username and password in PHP session variables?

From Dev

How can I securely authenticate to a server socket with java?

From Dev

How to store password in angularjs securely

From Dev

In Eve, how can you store the user's password securely?

From Dev

How Can I Use the Android KeyStore to securely store arbitrary strings?

From Dev

How can I securely store my AWS keys for an app on AppHarbor?

From Dev

How can I securely store EC private key in Android?

From Dev

How to store a password as securely in Chrome Extension?

From Dev

How to store samba (cifs) password securely?

From Dev

How can I check INITIALIZE UPDATE and EXTERNAL AUTHENTICATE correctness?

From Dev

How to securely store external auth credentials in google app engine

From Dev

How to securely send/store password in a Spring RESTful login service

From Dev

Store passwords of external database securely

From Dev

How i can allow external connection in MySql?

From Java

How can I store a program password in the OS keystore?

From Dev

How can I store a program password in the OS keystore?

From Dev

How can I store perforce P4V password?

From Dev

How can I change the password of store and alias in a signing certificate?

From Dev

How can I store an encrypted rdesktop password for easier sign-in?

From Dev

How can I lock a file / store a password for a period of time?

From Dev

How can I authenticate to a domain?

From Dev

auto authenticate password in mysql

From Dev

How can I store this classes inside MySQL?

From Dev

How can i store object in MySql Database?

From Dev

How do I securely store and manage 180 passwords?

From Dev

How can I authenticate any database with given username and password in Mongo Java Driver 2.13.0?

From Dev

Store a key or password securely locally on android

From Dev

Any way to store a password securely in an application

Related Related

  1. 1

    How can I store password securely in MySQL and authenticate to external services

  2. 2

    Can I securely store username and password in PHP session variables?

  3. 3

    How can I securely authenticate to a server socket with java?

  4. 4

    How to store password in angularjs securely

  5. 5

    In Eve, how can you store the user's password securely?

  6. 6

    How Can I Use the Android KeyStore to securely store arbitrary strings?

  7. 7

    How can I securely store my AWS keys for an app on AppHarbor?

  8. 8

    How can I securely store EC private key in Android?

  9. 9

    How to store a password as securely in Chrome Extension?

  10. 10

    How to store samba (cifs) password securely?

  11. 11

    How can I check INITIALIZE UPDATE and EXTERNAL AUTHENTICATE correctness?

  12. 12

    How to securely store external auth credentials in google app engine

  13. 13

    How to securely send/store password in a Spring RESTful login service

  14. 14

    Store passwords of external database securely

  15. 15

    How i can allow external connection in MySql?

  16. 16

    How can I store a program password in the OS keystore?

  17. 17

    How can I store a program password in the OS keystore?

  18. 18

    How can I store perforce P4V password?

  19. 19

    How can I change the password of store and alias in a signing certificate?

  20. 20

    How can I store an encrypted rdesktop password for easier sign-in?

  21. 21

    How can I lock a file / store a password for a period of time?

  22. 22

    How can I authenticate to a domain?

  23. 23

    auto authenticate password in mysql

  24. 24

    How can I store this classes inside MySQL?

  25. 25

    How can i store object in MySql Database?

  26. 26

    How do I securely store and manage 180 passwords?

  27. 27

    How can I authenticate any database with given username and password in Mongo Java Driver 2.13.0?

  28. 28

    Store a key or password securely locally on android

  29. 29

    Any way to store a password securely in an application

HotTag

Archive