Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

rafetirmak's avatar

Is it possible to encyript a video file with Laravel Help Functions ?

Is it possible to encypty a video file (mp4, 150 mb) with Laravel Help Function ?

0 likes
5 replies
rafetirmak's avatar

@tisuchi Many thanks for your reply... It is a suggested (not mandatory) medical standard for keeping patient self report data.

Is there any other way to keep secure larga video files with laravel ?

1 like
tisuchi's avatar

@rafetirmak A rough idea would be:

Is there any other way to keep secure large video files with laravel ?

Steps:

  1. You store your file initially as a regular file (without encryption)
  2. Once you store a file, dispatch a job that starts encryption processing.
  3. Don't make this file available unless encryption processing is done (kind of like YouTube file upload, the updated file is not available even to the owner until the processing is done)
  4. And more supporting process (if needed...)
2 likes
jlrdw's avatar

@rafetirmak You store the video out of web folder (not a public accessible folder).

Same for secure files like images, documents, etc.

You only allow it through a script using proper authorization.

If not sure about this, hire a consultant to assist who is a highly skilled developer.

Edit:

Securing private files has been covered in past post. Of course still encrypt if needed.

Please or to participate in this conversation.