简体   繁体   English

MySQL数据库带有加密的文件系统来存储图像

[英]MySQL database with an encrypted filesystem to store images

I am busy building an application that stores images of users in a filesystem,which can then be accessed by the database. 我正在忙于构建一个将用户图像存储在文件系统中的应用程序,然后数据库可以对其进行访问。

As the images should be confidential, is there a way to encrypt the filesystem and be able to link to the images from the database? 由于图像应该是机密的,有没有办法加密文件系统并能够从数据库链接到图像? I am using PHP, MySQL, Apache, Windows. 我正在使用PHP,MySQL,Apache,Windows。

Thank you for your time! 感谢您的时间!

This is not a MySQL problem. 这不是MySQL问题。 You should store file references in your MySQL tables and handle the file encryption yourself. 您应该将文件引用存储在MySQL表中,并自己处理文件加密。 IOW, your app should encrypt and decrypt the images at the application level and only these encrypted files should be moved around and stored. IOW,您的应用程序应该在应用程序级别对图像进行加密和解密,并且只有这些加密文件才能移动和存储。 Only the app can then display the contents of an image file. 然后,只有该应用程序才能显示图像文件的内容。 No plain readable form of the image appears anywhere else. 图像的其他任何地方都没有清晰可读的形式。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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