Search code examples
jpbc

Request for Attribute based Encryption pseudocode or java code (Jpbc library)


I want to implement the bilinear pairing Attribute based Encryption using Jpbc library. However, I could not find any pseudocode or code. Could you help me to find the pseudocode or code of ABE. Thank you.


Solution

  • I'm not very sure about what you exactly want. JPBC is a pairing library for Java. ABE is an encryption cipher. One is a mathematical tool to build an encryption cipher; the other is a cipher found in already-built libraries. So I will try to address everything you say in your question:

    I want to implement the bilinear pairing Attribute based Encryption using Jpbc library

    If you need a pairing library in Java, jPBC is your best option although it is not very good. As the authors mention, MIRACL is a good non-java alternative. Charm can also be a good option, either to build your own ABE implementation (something I do not recommend unless you are a cryptographer with implementation experience) or use some of theirs.

    Could you help me to find the pseudocode or code of ABE

    If what you want is a Java Implementation of ABE schemes, there are the following libraries available on GitHub:

    You should consider that these libraries have no maintenance or an active community.


    Finally, in case you find it useful, and if you are willing to use other languages, some other ABE implementations are: