GithubHelp home page GithubHelp logo

cp-abe's Introduction

1、仿真论文:Ciphertext-Policy Attribute-Based Encryption

2、使用库:JPBC + lombok

3、目录结构:

3.1 essay:论文
3.2 lib:jpbc库
3.3 params:椭圆曲线参数
3.4 src:源码
  1. attribute:属性对象
  2. engine:属性基加密引擎,完成encrypt、decrypt、keyGen工作
  3. polynomial:封装的多项式对象
  4. structure:访问树结构
  5. test:测试类
  6. text:明文和密文对象
  7. util:工具类

4、如何使用

根据test包下的Text.class类中getAccessTree()方法样例,构建访问树结构,然后依照test1()方法依此进行加解密

5、github地址

https://github.com/lengnu/CP-ABE

cp-abe's People

Contributors

lengnu avatar

Stargazers

v2v_is_my_heart avatar  avatar  avatar  avatar QeHing avatar Wenyu Dong avatar  avatar Kai Wang avatar  avatar  avatar Robert avatar qingfu liu avatar best_shen avatar Ataraxia avatar  avatar  avatar  avatar  avatar  avatar VanDa avatar 夏治道(xiazhidao solio) avatar Unknown avatar  avatar  avatar alice avatar LVjiajun avatar  avatar sangxiaolong avatar  avatar  avatar  avatar three_seven avatar  avatar  avatar RainieY avatar Liu.zy avatar liangsheng avatar  avatar  avatar qiujian avatar  avatar  avatar MagicBoy avatar  avatar  avatar  avatar xxxx. avatar Xu Weize avatar zouyp avatar

Watchers

 avatar

cp-abe's Issues

可以解释一下plainText吗?

写的真好,我想问一下对明文字符串加密前进一步处理成了什么呢?就是这个plainText,打印出来结果是这个PlainText(messageValue={x=1578710541426479918098204933897458031491227240023627650689855174483132995,y=0}, messageStr=你好,CP - ABE,我是JPBC);
我看其他的实现都是把明文哈希一下再加密,恢复也只能恢复成明文的哈希值,他们提供的解决方法是用abe加密密钥,最后用密钥来解密。

可以解释下那个权限树如何自定义吗?

如题,AccessTree.build(publicKey, accessTreeBuildModels);
我想尝试其他种权限树的情况,请问如何实现属性集中的“与或”效果?test中的学生、老师、硕士和二班、护士之间是”与“的关系吗?我画了这棵树并尝试了其他树的情况但没实现预期的效果,是不是我没理解?

问题

使用的是哪个版本的JDK鸭 我的没有tools.jar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.