junwei-wang / cpabe

Java realization for Ciphertext-Policy Attribute-Based Encryption
https://github.com/junwei-wang/cpabe
GNU General Public License v2.0
177 stars 86 forks source link

imports cannot be resolved. #5

Closed bjambu20 closed 10 years ago

bjambu20 commented 10 years ago

below imports cannot be resolved: Even i have jar file cpabe 2.0.0 and if i use cpabe 1.2.1 i get err.

  1. it.unisa.dia.gas.jpbc.CurveParameters and
  2. it.unisa.dia.gas.plaf.jpbc.pairing.DefaultCurveParameters

Anyone help me to solve this pbm.

junwei-wang commented 10 years ago

please use jPBC 1.2.1

RANJANIRAMALINGAMM commented 9 years ago

How should we give access policy input to cpabe..kindly help me...am completely new to this type of cryptography

junwei-wang commented 9 years ago

Please have a look of this link http://junwei-wang.github.io/cpabe/

RANJANIRAMALINGAMM commented 9 years ago

Thank you sir.. I have included all the 9 jars in jpbc...but the imports is not resolved for "it.unisa.dia.gas.plaf.jpbc.pairing.DefaultCurveParameters " alone sir...now what should i do for this ?...kindly help me sir

RANJANIRAMALINGAMM commented 9 years ago

I have tried cpabe given on your site.but that only import can't be resolved eventhough i have included all the necessary jpbc jars..kindly help me sir

RANJANIRAMALINGAMM commented 9 years ago

Sir You are my only hope to solve this problem..i have attached a snapshot of where i am getting error...kindly help me sir... doubt

RANJANIRAMALINGAMM commented 9 years ago

SIr i have resolved that import..but in your code you are using curveparameters for getpairing() function ...i have attached the code... DefaultCurveParameters params = new DefaultCurveParameters() .load(new ByteArrayInputStream(curveParams.getBytes()));

            pairing = PairingFactory.getPairing(params);

here actually pairingparameters or string only we can pass for getpairing function..how to convert default curveparameters into pairingparameter..

RANJANIRAMALINGAMM commented 9 years ago

Sir kindly help me...I am stucking here...how to pass value to getpairing function

RANJANIRAMALINGAMM commented 9 years ago

How to check jpbc wrapper is correctly installed

junwei-wang commented 9 years ago

Sorry @RANJANIRAMALINGAMM , Please refer to the manual of your IDE about how to import an library.

bjambu20 commented 9 years ago

@RANJANIRAMALINGAMM . I was able to run . So you may try another project in netbeans with appropriate jars. Otherwise try in eclipse.. Sure it will work..

RANJANIRAMALINGAMM commented 9 years ago

thank you sir ...whether i need to install PBC for this code to run

RANJANIRAMALINGAMM commented 9 years ago

i have installed jpbc library and run a small program for checking..it executes successfully...Whether i need to install pbc for this Cpabe code to run...can you please reply me

junwei-wang commented 9 years ago

@RANJANIRAMALINGAMM , you do not have to install pbc on you compute, but you have to download jPBC, and add it into the search PATH.

chenlog commented 9 years ago

maybe there is path problem, you try use file wheathe it can open the property

2015-03-18 15:27 GMT+08:00 Junwei Wang notifications@github.com:

@RANJANIRAMALINGAMM https://github.com/RANJANIRAMALINGAMM , you do not have to install pbc on you compute, but you have to download jPBC, and add it into the search PATH.

— Reply to this email directly or view it on GitHub https://github.com/junwei-wang/cpabe/issues/5#issuecomment-82791239.

感谢您拔冗阅读此邮件 此致 敬礼

RANJANIRAMALINGAMM commented 9 years ago

Thank you very much sir...i have downloaded jpbc and included all the 13 jars in netbeans...I am not getting any error...but while running the program i got the below errors...the encrypted file also cant open normally...but decrypted file could be open... doubtt

RANJANIRAMALINGAMM commented 9 years ago

How should i rectify this problem...why jpbc-pbc library module is not found eventhough i installed all the neccessary jars.. pairing = PairingFactory.getPairing(params); I am getting runtime error in the above statement when i run your code given in your site...how to solve this??kindly help me sir.

GraceZht commented 9 years ago

Just remove the jpbc-pbc-1.2.0.jar from your project, and you will see nothing serious happen with your project. but, the link error will disappear.

mangesh0910 commented 9 years ago

Sir, i am new to this approch....i have already added all jars... i am facing same problem as ranjaniramalingamm mention above getting compiletime error on following pairing=PairingFactory.getPairing(params); Sir plz kindly tell me proceess to resolve mentioned error..

junwei-wang commented 9 years ago

@mangesh0910 Did you use the correct version of jPBC?

mangesh0910 commented 9 years ago

try jpbc 2.0.0 as well as jpbc 1.2.1 still getting same error sir..,,

junwei-wang commented 9 years ago

Please read the source code and find out the reason. I don't maintain this project any more. I am sorry.

2015-05-12 12:56 GMT+08:00 mangesh0910 notifications@github.com:

try jpbc 2.0.0 as well as jpbc 1.2.1 still getting same error sir..,,

— Reply to this email directly or view it on GitHub https://github.com/junwei-wang/cpabe/issues/5#issuecomment-101130376.

meetalisaxena commented 7 years ago

hello sir, is there any one who can guide on me in the same above error ?

hassanel commented 7 years ago

Hello Mr. @junwei-wang , I tried to execute the main class DemoForCpabe.class but I've got this error exception : capture

junwei-wang commented 6 years ago

Duplicated and closed issue #6.

knagaraju799 commented 6 years ago

@RANJANIRAMALINGAMM did u solve that error ?? now .. I am getting the same error which u got for curveparams .. please help me out.