Sign inSign up

touatily/openabe

By touatily

Updated over 6 years ago

Image
0

203

touatily/openabe repository overview

touatily/oabe is docker image of openABE

docker pull touatily/oabe

A) CP-ABE

a - Setup

docker run -it --rm -v$(pwd):/root -w /root touatily/openabe oabe_setup -s CP

This will generate master public key and master secret key (keys of the attribute authority)

b - Key Generation

docker run -it --rm -v$(pwd):/root -w /root touatily/openabe oabe_keygen -s CP -i "<list_of_attributes>" -o sk.key

This command will generate a user secret key sk.key based on the list of attibutes <list_of_attributes>.

An example of attribute list : "student|cybersecurity|ESMEschool"

c - Encryption

docker run -it --rm -v$(pwd):/root -w /root touatily/openabe oabe_enc -s CP -e "student AND cybersecurity" -i file_to_encrypt -o encrypted_file

d - Decryption

docker run -it --rm -v$(pwd):/root -w /root touatily/openabe oabe_dec -s CP -k sk.key -i encrypted_file.cpabe -o decrypted_file

B) KP-ABE

to be continued ...

Tag summary

Content type

Image

Digest

Size

828.4 MB

Last updated

over 6 years ago

docker pull touatily/openabe