Skip to content

feesec/ABSE

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ABSE demo with UI

CPabe ,Inveted Index ,Serachable encryption

python 文件可以帮助理解abe的流程

jar 文件是使用jPBC里面的双线性对的运算,来完成ABE的算法,方案采用的是CPABE and InvertedIndex来完成搜索加密,

  1. this way with CPABE encodes the key of aes,abe can encode the files of onwers which way is quicky and easy,CPabe also decode the InvertedIndex(W,[f1,f2,f3])
  2. the key of this design is how to match the word of owner with the word1 of user
  3. how to prove the safety of this program,maby math

how to use it?

your pc shoud install Java 14(14 is ok in my pc),run it in termainal java -jar ABSEUI.jar

about the source code

一个基于属性的可搜索加密方案

  1. 属性加密
  2. 可搜索加密 Q:如何存储用户属性 Q:属性和加密如何结合 Q:我使用属性作为密钥将用户的信息加密后,存储到云端,是这样吗? Q:hash函数如何与加密后的消息进行结合

属性加密

  1. 将属性转成字符串,进行hash值生成attr_key
  2. 使用cipher=AES.new(attr_key, AES.MODE_CBC),cipher = cipher.encrypt(pad(plaintext.encode(), AES.block_size))进行加密,也可以返回iv初始向量
  3. 解密与上面一样 其中选择第一中算法bsw07来介绍如何使用CPABE

算法流程

  1. 生成群
  2. 生成cpabe对象
  3. 定义属性
  4. 设置访问树
  5. setup->pk,mk
  6. 生成私钥 keygen(pk,mk,属性)
  7. e(mk,msg,访问树)
  8. d(mk,sk,cipher) image image image image image image

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published