Beefy Boxes and Bandwidth Generously Provided by pair Networks Russ
No such thing as a small change
 
PerlMonks  

Re: How to assure security in the lighttpd (lighty) for a video streaming ?

by onelesd (Pilgrim)
on Jul 03, 2012 at 23:22 UTC ( #979802=note: print w/ replies, xml ) Need Help??


in reply to How to assure security in the lighttpd (lighty) for a video streaming ?

This will not be secure at all if you are using auto-increment or similar to generate the IDs for your videos.

What you could do instead (which isn't totally secure, but more-so at least), is use Data::UUID and Digest::SHA1.

After the video has been accessed, generate a random UUID, then run it through sha1 to make it prettier. Then just rename the video to the sha1 value you got.


Comment on Re: How to assure security in the lighttpd (lighty) for a video streaming ?

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://979802]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (5)
As of 2013-06-18 05:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How many continents have you visited?









    Results (595 votes), past polls