php - How to store documents encrypted -


i writing web application store documents server-side. looking best way document storing part.

directly in file system no option, because user should not have direct access them. have options in mind , want here opinion or experience or ideas other possible ways.

  1. store them in password protected container format zip, , store container , document name in table. split archives after size limit.

  2. store them blob inside mysql in separate table.

  3. store them in mysql archive engine table. https://dev.mysql.com/doc/refman/5.1/en/archive-storage-engine.html

  4. use mongodb , gridfs store data.

requirements:

  • the user has no direct access files.
  • the files must consistent.
  • storing files in table should not slow down rest of application.

if use db, store data in separate table , search on second table meta data fields.


Comments

Popular posts from this blog

python - No exponential form of the z-axis in matplotlib-3D-plots -

php - Best Light server (Linux + Web server + Database) for Raspberry Pi -

c# - "Newtonsoft.Json.JsonSerializationException unable to find constructor to use for types" error when deserializing class -