stefano81 / dcpabe

Decentralized CP-ABE
MIT License
105 stars 44 forks source link

Policy structure #2

Open ihsanhaikalz opened 6 years ago

ihsanhaikalz commented 6 years ago

Could you tell me how do you define the structure for the policy? In the test case you wrote something like this AccessStructure as = AccessStructure.buildFromPolicy("and a or d and b c"); and the attributes that fulfill the policy is a and d. How is that possible? Also what if I would like to make simple policy like a or b? How do I define it?

stefano81 commented 6 years ago

The system is using a simple policy syntax. The notation is called Polish notation and simplifies greatly the parsing of the policy as it eliminates the requirements for parenthesis.

and a or d and b c is the polish notation of a and (d or (b and c))

A policy a and b would translate to and a b.

I'll add some documentation.

lokesh-oruganti commented 4 years ago

hi i am new to attribute based encryption could you please explain which file to i have to run and libraries which i have to import for this project?

stefano81 commented 4 years ago

@lokesh-oruganti The project is a maven project. I opened an issue ( #22 ) to make the project available through maven central.

lokesh-oruganti commented 4 years ago

thank u @stefano81 for the response Can u please tell me the parameters which i have to pass for the DCPABETool file

lokesh-oruganti commented 4 years ago

hi can u please tell me the parameters or arguments that i have to pass for the successful execution of main Class .I know that i am bit over the line and i am sorry for it