Giter VIP home page Giter VIP logo

filevault's Introduction

fileVault

This project implements an encrypted file vault, by function overloading for system calls.

Install

Precondition

Make sure your node.js version is v16.13.1, and you can update your node version through this tutorial.

$ sudo apt install nodejs npm
$ node -v
v16.13.1

Next, you need to initialize the db.

$ sudo apt install mysql-server
$ sudo apt install libmysqlclient-dev

# check the status of mysql
$ sudo apt install net-tools
$ sudo netstat -tap | grep mysql

# set the password of the user “root”
$ sudo mysql
> update mysql.user set authentication_string=PASSWORD("123456"), plugin="mysql_native_password" where user="root";
> flush privileges;
> exit;

# restart the mysql server
$ sudo /etc/init.d/mysql restart

# initialize the db
$ mysql -u root -p
> create database test;
> use test;
> create table user (name varchar(100) not null, password varchar(100) not null);
> exit;

Finally, you need to initialize the vault directory.

$ sudo mkdir /vault
$ sudo chmod 777 /vault

Kernel

$ cd kernel
$ make
$ sudo insmod VaultModule.ko

GUI

We use electron to build the user-side program.

$ cd gui
$ npm install

If you have encountered some installation problems caused by network connections, try following steps to complete the installation progress :)

$ cd node_modules/electron
$ node install.js

Next, compile the netlink into a dynamic link library.

$ cd netlink
$ gcc -c -fPIC -o netlink.o netlink.c
$ gcc -shared -o libnetlink.so netlink.o

The last step, run the project!

$ cd ..
$ npm start

Enjoy it!

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.