- attribute:属性对象
- engine:属性基加密引擎,完成encrypt、decrypt、keyGen工作
- polynomial:封装的多项式对象
- structure:访问树结构
- test:测试类
- text:明文和密文对象
- util:工具类
根据test包下的Text.class类中getAccessTree()方法样例,构建访问树结构,然后依照test1()方法依此进行加解密
基于访问树构造的属性基加密
License: Apache License 2.0
根据test包下的Text.class类中getAccessTree()方法样例,构建访问树结构,然后依照test1()方法依此进行加解密
写的真好,我想问一下对明文字符串加密前进一步处理成了什么呢?就是这个plainText,打印出来结果是这个PlainText(messageValue={x=1578710541426479918098204933897458031491227240023627650689855174483132995,y=0}, messageStr=你好,CP - ABE,我是JPBC);
我看其他的实现都是把明文哈希一下再加密,恢复也只能恢复成明文的哈希值,他们提供的解决方法是用abe加密密钥,最后用密钥来解密。
如题,AccessTree.build(publicKey, accessTreeBuildModels);
我想尝试其他种权限树的情况,请问如何实现属性集中的“与或”效果?test中的学生、老师、硕士和二班、护士之间是”与“的关系吗?我画了这棵树并尝试了其他树的情况但没实现预期的效果,是不是我没理解?
使用的是哪个版本的JDK鸭 我的没有tools.jar
不会运行
发现jpbc的Element无法序列化,cipherText对象中的这些没办法存下来。
项目跑不起来,显示
import it.unisa.dia.gas.jpbc.Element;
import it.unisa.dia.gas.jpbc.Field;
这两行有问题
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.