cpabe
cpabe copied to clipboard
Getting Error
I am Getting
java.lang.UnsatisfiedLinkError: Unable to load library 'jpbc-pbc': The specified module could not be found.
at com.sun.jna.NativeLibrary.loadLibrary(NativeLibrary.java:164)
at com.sun.jna.NativeLibrary.getInstance(NativeLibrary.java:237)
at com.sun.jna.Library$Handler.<init>(Library.java:140)
at com.sun.jna.Native.loadLibrary(Native.java:375)
at com.sun.jna.Native.loadLibrary(Native.java:360)
at it.unisa.dia.gas.plaf.jpbc.wrapper.jna.WrapperLibraryProvider.<clinit>(WrapperLibraryProvider.java:14)
at it.unisa.dia.gas.plaf.jpbc.pbc.PairingFactory.isPBCAvailable(PairingFactory.java:18)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at it.unisa.dia.gas.plaf.jpbc.pairing.PairingFactory.<init>(PairingFactory.java:49)
at it.unisa.dia.gas.plaf.jpbc.pairing.PairingFactory.<clinit>(PairingFactory.java:20)
at ALGOS.setup(ALGOS.java:43)
at AA.setup(AA.java:25)
at ABE_ALGO.main(ABE_ALGO.java:34)
I have imported all jpbc-pbc jar files ...
Could you please specify your building environment and your building process?
Netbeans , in Windows 8.1
On Fri, Jun 22, 2018 at 9:37 PM, Junwei Wang [email protected] wrote:
Could you please specify your building environment and your building process?
— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/junwei-wang/cpabe/issues/13#issuecomment-399494731, or mute the thread https://github.com/notifications/unsubscribe-auth/Ad5eCgiioouAzwX0_zSB0viVFWM0mnbDks5t_RZUgaJpZM4U0Dd6 .
Please use Maven as showed in the BUILD. If it could not solve your problem, try to use *nix systems.
okay bro . Thank u .
On Fri, Jun 22, 2018 at 9:53 PM, Junwei Wang [email protected] wrote:
Please use Maven as showed in the BUILD. If it could solve your problem, try to use *nix systems.
— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/junwei-wang/cpabe/issues/13#issuecomment-399499872, or mute the thread https://github.com/notifications/unsubscribe-auth/Ad5eClSkPdCJ3dcyjsQ6WijjSsTdQpOHks5t_RoKgaJpZM4U0Dd6 .
Please take a look at the following file:
cpabe-api/src/main/java/co/junwei/cpabe/Cpabe.java
in which you will find how to store the keys in a file.
On Wed, Jun 27, 2018 at 1:49 PM, knagaraju799 [email protected] wrote:
Hello Sir,
In your project is it possible to print public key and private key in human readable format ? because we need to know what is the public key and private key because I want to pass this to encryption algorithms so what I have to do ? please give me any suggestions !
Sincerely, Nagaraju. University of Hyderabad
On Fri, Jun 22, 2018 at 9:56 PM, NAGARAJU K [email protected] wrote:
okay bro . Thank u .
On Fri, Jun 22, 2018 at 9:53 PM, Junwei Wang [email protected] wrote:
Please use Maven as showed in the BUILD. If it could solve your problem, try to use *nix systems.
— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub <https://github.com/junwei-wang/cpabe/issues/13#issuecomment-399499872 , or mute the thread <https://github.com/notifications/unsubscribe-auth/ Ad5eClSkPdCJ3dcyjsQ6WijjSsTdQpOHks5t_RoKgaJpZM4U0Dd6> .
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/junwei-wang/cpabe/issues/13#issuecomment-400644225, or mute the thread https://github.com/notifications/unsubscribe-auth/AA04GSJOn_pbNCmmS8urvq11aGTfZmydks5uA3FIgaJpZM4U0Dd6 .
First, please read this file
cpabe-api/src/main/java/co/junwei/cpabe/Cpabe.java
Try to understand how the keys are stored in the "unreadable" way. Then I hope you will figure out a way to store them in a readable way.
On Wed, Jun 27, 2018 at 3:04 PM, knagaraju799 [email protected] wrote:
I stored keys in files , but I am unable to read that keys .. it stored some unreadable characters in that files . So , I am asking that how to store that keys in a file in readable format is it possible to store keys in readable format or not ? please don't mind sir because i am doing internship on this please help me .
Thank you.
On Wed, Jun 27, 2018 at 6:10 PM, Junwei Wang [email protected]
wrote:
Please take a look at the following file:
cpabe-api/src/main/java/co/junwei/cpabe/Cpabe.java
in which you will find how to store the keys in a file.
On Wed, Jun 27, 2018 at 1:49 PM, knagaraju799 [email protected] wrote:
Hello Sir,
In your project is it possible to print public key and private key in human readable format ? because we need to know what is the public key and private key because I want to pass this to encryption algorithms so what I have to do ? please give me any suggestions !
Sincerely, Nagaraju. University of Hyderabad
On Fri, Jun 22, 2018 at 9:56 PM, NAGARAJU K [email protected] wrote:
okay bro . Thank u .
On Fri, Jun 22, 2018 at 9:53 PM, Junwei Wang < [email protected]
wrote:
Please use Maven as showed in the BUILD. If it could solve your problem, try to use *nix systems.
— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub <https://github.com/junwei-wang/cpabe/issues/13# issuecomment-399499872 , or mute the thread <https://github.com/notifications/unsubscribe-auth/ Ad5eClSkPdCJ3dcyjsQ6WijjSsTdQpOHks5t_RoKgaJpZM4U0Dd6> .
— You are receiving this because you commented. Reply to this email directly, view it on GitHub <https://github.com/junwei-wang/cpabe/issues/13#issuecomment-400644225 , or mute the thread <https://github.com/notifications/unsubscribe-auth/AA04GSJOn_ pbNCmmS8urvq11aGTfZmydks5uA3FIgaJpZM4U0Dd6>
.
— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/junwei-wang/cpabe/issues/13#issuecomment-400657465, or mute the thread <https://github.com/notifications/unsubscribe- auth/Ad5eCjovGI1GG6I-sHQXrGt-3P5BHmrKks5uA31QgaJpZM4U0Dd6>
.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/junwei-wang/cpabe/issues/13#issuecomment-400664155, or mute the thread https://github.com/notifications/unsubscribe-auth/AA04GQAajf8b44nEnuxhzpuGxUBzJP_-ks5uA4L6gaJpZM4U0Dd6 .
Hello Sir ,
Which algorithms can I use for Data encryption ? In ABE scheme ? Which algorithms did you use for encryption such as AES , RSA ?
Thank you.
On Wed, Jun 27, 2018 at 9:48 PM, Junwei Wang [email protected] wrote:
First, please read this file
cpabe-api/src/main/java/co/junwei/cpabe/Cpabe.java
Try to understand how the keys are stored in the "unreadable" way. Then I hope you will figure out a way to store them in a readable way.
On Wed, Jun 27, 2018 at 3:04 PM, knagaraju799 [email protected] wrote:
I stored keys in files , but I am unable to read that keys .. it stored some unreadable characters in that files . So , I am asking that how to store that keys in a file in readable format is it possible to store keys in readable format or not ? please don't mind sir because i am doing internship on this please help me .
Thank you.
On Wed, Jun 27, 2018 at 6:10 PM, Junwei Wang [email protected]
wrote:
Please take a look at the following file:
cpabe-api/src/main/java/co/junwei/cpabe/Cpabe.java
in which you will find how to store the keys in a file.
On Wed, Jun 27, 2018 at 1:49 PM, knagaraju799 < [email protected]> wrote:
Hello Sir,
In your project is it possible to print public key and private key in human readable format ? because we need to know what is the public key and private key because I want to pass this to encryption algorithms so what I have to do ? please give me any suggestions !
Sincerely, Nagaraju. University of Hyderabad
On Fri, Jun 22, 2018 at 9:56 PM, NAGARAJU K [email protected] wrote:
okay bro . Thank u .
On Fri, Jun 22, 2018 at 9:53 PM, Junwei Wang < [email protected]
wrote:
Please use Maven as showed in the BUILD. If it could solve your problem, try to use *nix systems.
— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub <https://github.com/junwei-wang/cpabe/issues/13# issuecomment-399499872 , or mute the thread <https://github.com/notifications/unsubscribe-auth/ Ad5eClSkPdCJ3dcyjsQ6WijjSsTdQpOHks5t_RoKgaJpZM4U0Dd6> .
— You are receiving this because you commented. Reply to this email directly, view it on GitHub <https://github.com/junwei-wang/cpabe/issues/13# issuecomment-400644225 , or mute the thread <https://github.com/notifications/unsubscribe-auth/AA04GSJOn_ pbNCmmS8urvq11aGTfZmydks5uA3FIgaJpZM4U0Dd6>
.
— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub <https://github.com/junwei-wang/cpabe/issues/13#issuecomment-400657465 , or mute the thread <https://github.com/notifications/unsubscribe- auth/Ad5eCjovGI1GG6I-sHQXrGt-3P5BHmrKks5uA31QgaJpZM4U0Dd6>
.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/junwei-wang/cpabe/issues/13#issuecomment-400664155, or mute the thread <https://github.com/notifications/unsubscribe-auth/ AA04GQAajf8b44nEnuxhzpuGxUBzJP_-ks5uA4L6gaJpZM4U0Dd6>
.
— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/junwei-wang/cpabe/issues/13#issuecomment-400737389, or mute the thread https://github.com/notifications/unsubscribe-auth/Ad5eCqsP3W7MMw1Mp2Aphs-wg72013Y5ks5uA7A9gaJpZM4U0Dd6 .
It is AES.
Please read the source code before asking questions https://github.com/junwei-wang/cpabe/blob/master/cpabe-api/src/main/java/co/junwei/cpabe/AESCoder.java
Hello Sir,
I am building the ABE without access policy in the encryption So I modified my code I got setup, keygen, encryption successfully but while I am doing decryption I am getting below error means I am getting negative numbers for len variable !! please kindly can you find where i am doing mistake ? while decryption . I tried but I am unable to solve that error . please help me .
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: -2129963202 at Serialization.unserializeUint32(Serialization.java:221) at Serialization.unserializeElement(Serialization.java:205) at Serialization.unserializeBswabePrv(Serialization.java:128) at AA.dec(AA.java:131) at ABE_ALGO.main(ABE_ALGO.java:98) C:\Users\nagaraju703\AppData\Local\NetBeans\Cache\8.2\executor-snippets\run.xml:53: Java returned: 1 BUILD FAILED (total time: 2 seconds)
On Thu, Jun 28, 2018 at 8:35 PM, Junwei Wang [email protected] wrote:
It is AES.
Please read the source code before asking questions https://github.com/junwei-wang/cpabe/blob/master/cpabe- api/src/main/java/co/junwei/cpabe/AESCoder.java
— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/junwei-wang/cpabe/issues/13#issuecomment-401067034, or mute the thread https://github.com/notifications/unsubscribe-auth/Ad5eCtS_BFEDz9OwSl_iPfzoe_xGm4dMks5uBPCogaJpZM4U0Dd6 .
Hello Sir,
I am modifying your code . I am deleting access policy part from your code while doing encryption because I don't need of access policy in my project which I am doing by taking reference of your project . While decryption I noticed that two keys are coming different in the AES algorithm . please kindly help me on this project I cannot move forward in my project without doing encryption and decryption I clearly understood your code and I modified but still not getting may be I am doing wrong some where please find out where I am doing the mistake . I am also attaching modified code here In that code I commented lines which I don't require . you need to just run the file " DemoForCpabe.java " you will get output which I am printing lines for debugging purpose . So please ignore my mistakes because I am just testing your code and trying to modify that why I didn't following programming rules .
I need your help please kindly give me reply . please tell me the mistake , and How to I decrypt the message without using access policy in encryption.
Thank you .
On Tue, Jul 3, 2018 at 6:07 PM, NAGARAJU K [email protected] wrote:
Hello Sir,
I am building the ABE without access policy in the encryption So I modified my code I got setup, keygen, encryption successfully but while I am doing decryption I am getting below error means I am getting negative numbers for len variable !! please kindly can you find where i am doing mistake ? while decryption . I tried but I am unable to solve that error . please help me .
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: -2129963202 at Serialization.unserializeUint32(Serialization.java:221) at Serialization.unserializeElement(Serialization.java:205) at Serialization.unserializeBswabePrv(Serialization.java:128) at AA.dec(AA.java:131) at ABE_ALGO.main(ABE_ALGO.java:98) C:\Users\nagaraju703\AppData\Local\NetBeans\Cache\8.2\executor-snippets\run.xml:53: Java returned: 1 BUILD FAILED (total time: 2 seconds)
On Thu, Jun 28, 2018 at 8:35 PM, Junwei Wang [email protected] wrote:
It is AES.
Please read the source code before asking questions https://github.com/junwei-wang/cpabe/blob/master/cpabe-api/ src/main/java/co/junwei/cpabe/AESCoder.java
— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/junwei-wang/cpabe/issues/13#issuecomment-401067034, or mute the thread https://github.com/notifications/unsubscribe-auth/Ad5eCtS_BFEDz9OwSl_iPfzoe_xGm4dMks5uBPCogaJpZM4U0Dd6 .
This is the project Which I modified
On Wed, Jul 4, 2018 at 5:16 PM, NAGARAJU K [email protected] wrote:
Hello Sir,
I am modifying your code . I am deleting access policy part from your code while doing encryption because I don't need of access policy in my project which I am doing by taking reference of your project . While decryption I noticed that two keys are coming different in the AES algorithm . please kindly help me on this project I cannot move forward in my project without doing encryption and decryption I clearly understood your code and I modified but still not getting may be I am doing wrong some where please find out where I am doing the mistake . I am also attaching modified code here In that code I commented lines which I don't require . you need to just run the file " DemoForCpabe.java " you will get output which I am printing lines for debugging purpose . So please ignore my mistakes because I am just testing your code and trying to modify that why I didn't following programming rules .
I need your help please kindly give me reply . please tell me the mistake , and How to I decrypt the message without using access policy in encryption.
Thank you .
On Tue, Jul 3, 2018 at 6:07 PM, NAGARAJU K [email protected] wrote:
Hello Sir,
I am building the ABE without access policy in the encryption So I modified my code I got setup, keygen, encryption successfully but while I am doing decryption I am getting below error means I am getting negative numbers for len variable !! please kindly can you find where i am doing mistake ? while decryption . I tried but I am unable to solve that error . please help me .
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: -2129963202 at Serialization.unserializeUint32(Serialization.java:221) at Serialization.unserializeElement(Serialization.java:205) at Serialization.unserializeBswabePrv(Serialization.java:128) at AA.dec(AA.java:131) at ABE_ALGO.main(ABE_ALGO.java:98) C:\Users\nagaraju703\AppData\Local\NetBeans\Cache\8.2\executor-snippets\run.xml:53: Java returned: 1 BUILD FAILED (total time: 2 seconds)
On Thu, Jun 28, 2018 at 8:35 PM, Junwei Wang [email protected] wrote:
It is AES.
Please read the source code before asking questions https://github.com/junwei-wang/cpabe/blob/master/cpabe-api/s rc/main/java/co/junwei/cpabe/AESCoder.java
— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/junwei-wang/cpabe/issues/13#issuecomment-401067034, or mute the thread https://github.com/notifications/unsubscribe-auth/Ad5eCtS_BFEDz9OwSl_iPfzoe_xGm4dMks5uBPCogaJpZM4U0Dd6 .
Dear Sir
while debugging your code in eclipse, my console shows the following messages, but after the decryption the decrypted file is not created. Could you please let me know the issue.
thank you
This is the project Which I modified … On Wed, Jul 4, 2018 at 5:16 PM, NAGARAJU K @.> wrote: Hello Sir, I am modifying your code . I am deleting access policy part from your code while doing encryption because I don't need of access policy in my project which I am doing by taking reference of your project . While decryption I noticed that two keys are coming different in the AES algorithm . please kindly help me on this project I cannot move forward in my project without doing encryption and decryption I clearly understood your code and I modified but still not getting may be I am doing wrong some where please find out where I am doing the mistake . I am also attaching modified code here In that code I commented lines which I don't require . you need to just run the file " DemoForCpabe.java " you will get output which I am printing lines for debugging purpose . So please ignore my mistakes because I am just testing your code and trying to modify that why I didn't following programming rules . I need your help please kindly give me reply . please tell me the mistake , and How to I decrypt the message without using access policy in encryption. Thank you . On Tue, Jul 3, 2018 at 6:07 PM, NAGARAJU K @.> wrote: > Hello Sir, > > I am building the ABE without access policy in the encryption So I > modified my code I got setup, keygen, encryption successfully but while I > am doing decryption I am getting below > error means I am getting negative numbers for len variable !! please > kindly can you find where i am doing mistake ? while decryption . I > tried but I am unable to solve that error . please help me . > > > > Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: > -2129963202 > at Serialization.unserializeUint32(Serialization.java:221) > at Serialization.unserializeElement(Serialization.java:205) > at Serialization.unserializeBswabePrv(Serialization.java:128) > at AA.dec(AA.java:131) > at ABE_ALGO.main(ABE_ALGO.java:98) > C:\Users\nagaraju703\AppData\Local\NetBeans\Cache\8.2\executor-snippets\run.xml:53: > Java returned: 1 > BUILD FAILED (total time: 2 seconds) > > > > > On Thu, Jun 28, 2018 at 8:35 PM, Junwei Wang @.***> > wrote: > >> It is AES. >> >> Please read the source code before asking questions >> https://github.com/junwei-wang/cpabe/blob/master/cpabe-api/s >> rc/main/java/co/junwei/cpabe/AESCoder.java >> >> — >> You are receiving this because you modified the open/close state. >> Reply to this email directly, view it on GitHub >> <#13 (comment)>, >> or mute the thread >> https://github.com/notifications/unsubscribe-auth/Ad5eCtS_BFEDz9OwSl_iPfzoe_xGm4dMks5uBPCogaJpZM4U0Dd6 >> . >> > >
hi, are you from India?
This is the project Which I modified … On Wed, Jul 4, 2018 at 5:16 PM, NAGARAJU K @.> wrote: Hello Sir, I am modifying your code . I am deleting access policy part from your code while doing encryption because I don't need of access policy in my project which I am doing by taking reference of your project . While decryption I noticed that two keys are coming different in the AES algorithm . please kindly help me on this project I cannot move forward in my project without doing encryption and decryption I clearly understood your code and I modified but still not getting may be I am doing wrong some where please find out where I am doing the mistake . I am also attaching modified code here In that code I commented lines which I don't require . you need to just run the file " DemoForCpabe.java " you will get output which I am printing lines for debugging purpose . So please ignore my mistakes because I am just testing your code and trying to modify that why I didn't following programming rules . I need your help please kindly give me reply . please tell me the mistake , and How to I decrypt the message without using access policy in encryption. Thank you . On Tue, Jul 3, 2018 at 6:07 PM, NAGARAJU K @.> wrote: > Hello Sir, > > I am building the ABE without access policy in the encryption So I > modified my code I got setup, keygen, encryption successfully but while I > am doing decryption I am getting below > error means I am getting negative numbers for len variable !! please > kindly can you find where i am doing mistake ? while decryption . I > tried but I am unable to solve that error . please help me . > > > > Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: > -2129963202 > at Serialization.unserializeUint32(Serialization.java:221) > at Serialization.unserializeElement(Serialization.java:205) > at Serialization.unserializeBswabePrv(Serialization.java:128) > at AA.dec(AA.java:131) > at ABE_ALGO.main(ABE_ALGO.java:98) > C:\Users\nagaraju703\AppData\Local\NetBeans\Cache\8.2\executor-snippets\run.xml:53: > Java returned: 1 > BUILD FAILED (total time: 2 seconds) > > > > > On Thu, Jun 28, 2018 at 8:35 PM, Junwei Wang @.***> > wrote: > >> It is AES. >> >> Please read the source code before asking questions >> https://github.com/junwei-wang/cpabe/blob/master/cpabe-api/s >> rc/main/java/co/junwei/cpabe/AESCoder.java >> >> — >> You are receiving this because you modified the open/close state. >> Reply to this email directly, view it on GitHub >> <#13 (comment)>, >> or mute the thread >> https://github.com/notifications/unsubscribe-auth/Ad5eCtS_BFEDz9OwSl_iPfzoe_xGm4dMks5uBPCogaJpZM4U0Dd6 >> . >> > >
Hey were you able to execute this project successfully?
Yes
Yes
Hey bro..... Can you share your project with me? on my mail id [email protected] ????? And have you implemented attribute based encryption on any web application. I am facing much problem as my final semester project topic is using attribute based encryption on web applications ...eg job portal, hospital or any other ,So can you please help me regarding this project?
Hey I messeged you on hangout ... if u r free