Skip to content

CoralGao/Secure-file-management-system

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Secure-file-management-system

1.install mysql, then install Python interface to MySQL, for example, on MAC:

export PATH=$PATH:/usr/local/mysql/bin

sudo pip install MySQL-python

some problem you may come across:

otool -L /Library/Python/2.7/site-packages/_mysql.so

sudo install_name_tool -change libmysqlclient.18.dylib /usr/local/mysql/lib/libmysqlclient.18.dylib /Library/Python/2.7/site-packages/_mysql.so

2.install pycrypto(The Python Cryptography Toolkit) which used in this project:

sudo pip install pycrypto

then you need add your database info into mysql:

mysql -uroot

flush privileges;

CREATE USER 'CS8120'@'localhost' IDENTIFIED BY 'CS8120';

GRANT ALL PRIVILEGES ON . TO 'CS8120'@'localhost'

-> WITH GRANT OPTION;

then you can operate with:

mysql -uCS8120 -p

CREATE DATABASE CS8120;

then follow create_tables.sql in experiment/sql instruction to create tables.

before you actually create the first admin user use:

python adminCreator.py

you need prepare a folder to install your key like this:

/Volumes/NO\ NAME/keys

for me, I store keys in a usb driver named NO NAME, then a folder named keys.

after these, you can create your first admin user now!

python adminCreator.py

then you can login in

python main.py use the user you created.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages