LiangZhang716 / kpabe

kpabe toolkit in Java
8 stars 7 forks source link

Decryption Issue #1

Open rahimKassimali opened 8 years ago

rahimKassimali commented 8 years ago

We are having problems in decryption of the file which we have encrypted first. So kindly can you provide us sample code of encryption and decryption

this is our code for decryption String[] attr = {"teacher","student"}; test.setup(pubfile, mskfile, attr); test.dec(pubfile, prvfile, outputfile, decfile);

1

chunhuiyap commented 7 years ago

Hi, I'm also having the same problems in decryption. Have u figured out what is the error?

asom2016 commented 7 years ago

same the probem how you solve it

rahimKassimali commented 7 years ago

Basically the problem is who so ever made this project didn't put any return condition in recursion function because of which the function keeps on calling it self. The project was not working even after lots of efforts

SudoHenk commented 7 years ago

This issue is rather simple to fix, as the problem is the (de)serialization and not the crypto involved.

I'm fiddling around with it at the moment at https://github.com/SudoHenk/kpabe

Would be happy to create a pull request, but more things seem to be going wrong (such as expressing policies).