Skip to content

a course project on attribute-based searchable encryption

Notifications You must be signed in to change notification settings

qiuxiangdong/securefilestorage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Secure-File-Storage-Cloud

Attribute based secure file storage on cloud
###Steps to Run

1. Setup the TA- to generate the MSK

Compile: gcc -o setup setup.c -L. -lpbc -lgmp
Run: ./setup

2. Run the server on TA for Data owners to request for unique private key (server runs infinitely)

Compile: gcc -o PKGen PKGenServer.c common.c -L. -lpbc -lgmp
Run: ./PKGen
Data owner requests for Private Key by sending attributelist
Compile: gcc -o client client.c common.c -L. -lpbc -lgmp
Run: ./client 192.168.1.5
Command line input
a. attributelist.txt

3. MetaData server is run which actually provides file storage

Run the server to upload file
Compile: gcc -o server server.c common.c -L. -lgmp -lpbc mysql_config --cflags --libs
Run: ./server
Data owner uploads the encrypted file using the private key obtained by TA
Compile: gcc -o fileuploadcl FileUploadClient.c common.c -L. -lgmp -lpbc
Run ./fileuploadcl 192.168.1.5(IP address of TA)
command line input
File.txt (file to upload)
Keyword list

4. Data user requests the server for file using a keyword list. If the attributes of the user matches and keyword list matches the user gets access to the file.

Running the Trapdoor server:
Compile: gcc -o tpgser TrapGenServer.c common.c -L. -lgmp -lpbc mysql_config --cflags --libs
Run: ./tpgser

compile: gcc -o Trapclient TrapdoorGen.c common.c -L. -lgmp -lpbc
run ./Trapclient 192.168.1.4(IP address of metadata server)
Command line input

  1. Trapdoor keyword search

About

a course project on attribute-based searchable encryption

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages