Giter Club home page Giter Club logo

libreedb's Introduction

Reedb Logo

๐Ÿ”’ Fully encrypted, document-table-hybrid oriented database with per-user encryption, nested ciphers, groups and zones for selective sharing, rights management and revocation of privilages. Encrypt single datasets, multisets or even filesystem nodes via FUSE.

Bugs are being tracked on this github repository - if you find issues, please open an issue. Exact progress can be tracked on the Lonely Robot wekan

Build

libreedb is built on a few libraries. Building has been tested on Fedora 24 and Arch Linux. If you have issues compiling the library, please open an issue for it.

gcc cmake libgcrypt libapr libgdsl protobuf-c

An out-of-source build is recommended

mkdir build && cd build/
cmake ..
cmake --build .

By default libreeedb builds a static object. This behaviour can be changed by providing --shared as a parameter to the cmake configuration.

How to use

To start using reedb you need to create a context. You can either do so on the stack or allocate memory by yourself and pass the pointer instead.

rdb_err_t err;
rdb_context ctx;
err = rdb_ctx_init(&ctx);

Afterwards the context is available for further configuration or to create a new vault.


rdb_vault vault;
err = rdb_ctx_vaultcreate(&ctx, &vault, "default", "~/Documents/");
// Check for errors

rdb_uuid user = rdb_vlts_adduser(vault, "spacekookie", 0);
err = rdb_vlts_setlogin(vault, &user, "mega_passphrase!");
// Check for errors

When creating a vault flags need to be provided to control it's behaviour. Most flags are covered under default values, however there is one thing you need to set before you can start using your vault: the type.

The vault type very profoundly changes the way the vault will behave and is thus required to be explicitly defined. An implicitly chosen behaviour might endanger data in your usecase. The following vault types are available:

Vault type Unique behaviour
Root The vault is accessable and managed by only one "root" user
Managed The vault has multi-user access however still has an administrator with super-access
Multi-User The vault has mutliple users with no administrator but allows for zone management (aka hierarchy)
Anarchy The vault has multiple users with no administrator. There is NO hierarchy

You can then bitwise OR together whatever flags you want:

err = rdb_vlts_setflags(vault, RDB_FLG_ROOT | ...);

More documentation to follow :)

libreedb's People

Contributors

saces avatar igbc avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.