Free file hosting website https://void.cat
Go to file
2019-03-27 03:11:59 +08:00
examples/embed Small changes 2018-12-07 00:27:47 +08:00
src add VBF2 2019-03-25 17:39:09 +08:00
tools add build instructions 2019-03-27 03:11:59 +08:00
utils/ga-page-view Update 2018-12-06 00:02:17 +08:00
.gitignore add build instructions 2019-03-27 03:11:59 +08:00
build_autoloader.bat update for beta 2018-11-21 17:00:49 +08:00
build_lib.bat update for beta 2018-11-21 17:00:49 +08:00
build.bat update for beta 2018-11-21 17:00:49 +08:00
favicon.ico block crawl bots from counting views 2017-11-17 15:34:29 +08:00
index.html add donate 2019-02-13 23:42:09 +08:00
README.md oops fix readme 💯 2019-03-25 17:44:17 +08:00

Setup

  • Nginx
  • php-fpm
  • php-redis
  • php-curl
  • php-gmp
  • Redis

Nginx handler

location ~* "^\/([0-9a-z]{27})$" {
		try_files $uri /src/php/handler.php?h=download&id=$1;
}

Void Binary File Format (VBF2)

All numbers are little endian

Name Size Description
version 1 byte unsigned number Binary file format version
magic 4 bytes "VOID" encoded to UTF8 string
uploaded 4 byte unsigned number Unix timestamp of when the upload started
payload EOF - 32 bytes The encrypted payload
hash 32 bytes HMAC-SHA265 The HMAC of the unencrypted file*

* Using the encryption key as the HMAC key

VBF Payload Format

Name Size Description
header_length 2 byte unsigned number Length of the header section
header {header_length} UTF8 String The header json
file >EOF The file