简体   繁体   中英

CodeIgniter: Encrypt communication between app and mysql db on different servers?

Can anyone tell me the best way to encrypt data between a CI application and a MySQL db hosted on separate servers. SSH tunnel? If so, has anyone gotten this working using CI? Code examples and/or links are welcome.

Mysql's native ssl functionality as Daniel said or you can use stunnel . I recently faced the same question [ see here ], and was going to go the route of stunnel. However, I decided instead to encrypt the data via mcrypt locally before sending it over the wire to the database.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM