unigma

command module
v1.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 29, 2019 License: MIT Imports: 13 Imported by: 0

README

version license

Unigma

Secure file sharing service.

Process:

  • upload a file (+settings: required password + TTL + number of sharing)
  • the file content and name are encrypted using AES-256 with a key based on user's password, metadata is stored in local SQLite database
  • get unique link
  • share the link (recipient should know used password)

Build

Dependencies:

github.com/mattn/go-sqlite3
golang.org/x/crypto/pbkdf2
golang.org/x/crypto/sha3

Check and build

make install

Prepare empty database db.sqlite:

cat schema.sql | sqlite3 db.sqlite

For docker container z0rr0/unigma

make docker

Development

Run
make start

make restart

make stop
Tests

Tests use temporary directory /tmp/ and checked on Linux hosts.

make test

License

This source code is governed by a MIT license that can be found in the LICENSE file.

Documentation

Overview

Copyright 2020 Alexander Zaytsev <me@axv.email>. All rights reserved. Use of this source code is governed by a MIT-style license that can be found in the LICENSE file.

Directories

Path Synopsis
Package conf implements methods setup configuration settings.
Package conf implements methods setup configuration settings.
Package db contains methods to store files on filesystem and metadata in database.
Package db contains methods to store files on filesystem and metadata in database.
Package page contains HTML text templates.
Package page contains HTML text templates.
Package web contains HTTP handlers methods.
Package web contains HTTP handlers methods.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL