Rouji / single_php_filehost

Simple Filehosting Page in a Single PHP File (obvious 0x0 clone)
ISC License
238 stars 31 forks source link

Add an option for longer file keys #25

Closed alexlehm closed 9 months ago

alexlehm commented 11 months ago

Could you add an option secret= to make the file key longer to make it unguessable if you want to post almost hidden information.

Rouji commented 11 months ago

Do you want that for your instance of this, or on x0.at? Because I don't really want to pretend putting sensitive stuff on x0.at is a good idea🤔

alexlehm commented 11 months ago

I agree that it should not be used for really sensitive stuff, more to post something that is not found immediately.

I would think having an option to turn that on and off would be fine. I patched it into my own instance for now, i don't think it is necessary for the x0.at instance

Rouji commented 10 months ago

I guess adding a name_length=N parameter or something wouldn't be too problematic. PR would be neat, or I'll do it in a few blue moons when I have time for stuff again.

I wouldn't say files can be found "immediately" though, the keyspace is quite a few orders of magnitude larger than the number of files on x0.at

alexlehm commented 10 months ago

i will clean up my adhoc patch and submit it when i have time

alexlehm commented 10 months ago

created as #26