mirror of
https://git.v0l.io/Kieran/void.cat.git
synced 2025-03-29 20:51:44 +01: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 |
Description
Languages
C#
75.2%
TypeScript
22.3%
CSS
1.5%
HTML
0.4%
Dockerfile
0.3%
Other
0.3%