diff options
author | SanJacobs | 2022-10-09 05:27:31 +0200 |
---|---|---|
committer | SanJacobs | 2022-10-09 05:27:31 +0200 |
commit | fda0ca04aab0a84f8d2c6e699162014071b66451 (patch) | |
tree | 73387c26c0e69af9b7fcdbb228ad0c47a4b5f8a3 /README.md | |
parent | 31f388f4989b520bf50d5c766af19d6982e77759 (diff) | |
download | send-fda0ca04aab0a84f8d2c6e699162014071b66451.tar.gz send-fda0ca04aab0a84f8d2c6e699162014071b66451.tar.bz2 send-fda0ca04aab0a84f8d2c6e699162014071b66451.zip |
It works!!!
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 15 |
1 files changed, 10 insertions, 5 deletions
@@ -14,17 +14,22 @@ This is not finished software, don't use it. ## Planning +### The main problem + +Not generating the page for every file every time the script runs. +Somehow, the script needs to know if a file has already had it's page set up. +Ok, just md5 the file, and see if the directory exists. +Do the same for when the file is beyond 14 days old, and delete said directory, and then the file. + +### The easy part + I need a dir where I put a bunch of zip files. Probably the home directory of a new user named "send" Each filename will get md5sum'ed, and that will become the link. send.sparkburst.net/f38eba6dbbe1965bc4869621d5a6fed3/test.zip -Is this amazing for security? No, you could brute force this to find the files, but honestly, who cares? -Any production important for security and leaks to be a concern will have a dedicated DIT, and this won't be needed. -Maybe I could salt it... Hmmm... A thought for later. - -To generate the webpage, all I need is three pices of HTML to cat together. +To generate the webpage, all I need is a few pieces of HTML to concatenate 1. Header and down to an opening `<h1>` 2. Title of File |