Comment

Comment by lewiscollard

It's still far short of being suitable for use of any private documents.

https://github.com/baicunko/scanyourpdf/blob/master/pdfwebsi...

This is rather less than secure; output files are named, e.g., "Scan_2020512_{four random lower-case letters}.pdf" into a web-server-readable directory.

That gives a total of 456976 different possible filenames on a day. It's more than feasible to brute-force that many filenames in the hour before files get deleted.

OP: I don't think randomly-suffixed file names are an inherently bad way to approach this. But you should definitely consider using a longer random string, and definitely consider not using the `random` module too (it is not secure and is not intended to be).

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton