Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

share - share files

A tiny personal minimalistic file-sharing service. Written in Go, minimal dependencies.

A screenshort of the page

Configuration

  • BASE_URL (environment)
  • upload-secret.txt (a secret string that needs to be specified to be able to upload)
    • empty by default
  • code-only:
    • max upload size (50mb)
    • uploads directory (./uploads)
    • rate limit (1 upload request per 10 seconds)
    • expiry (14 days)

Features

(Unchecked items are not implemented yet.

  • upload only with password
  • upload rate limiting
  • set content type for downloads
  • delete files after N days
  • admin stats (rate limiting, uploads, num downloads)
  • password encryption (optional, encrypted with password on disk, crypto/aes?)
    • seems extremely tricky, consider using WebCryptoAPI implementation from firefox send?
      • would like to keep it server-side though, to avoid JS as we did so far...
    • could do an "obfuscation" method for pseudo-security, i.e. security against novices, like me

Encryption

  • encryption at rest, i.e. the server gets sent the plaintext
    • malicious code/servers could record the plaintext
  • crypto/aes (with sha256(password) as key) + cipher.NewOTR
  • password is also checked using bcrypt before attempting decryption

About

A tiny personal minimalistic file-sharing service.

Topics

Resources

Releases

No releases published

Packages

No packages published
You can’t perform that action at this time.