touatily/oabe is docker image of openABE
docker pull touatily/oabe
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)
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"
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
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
to be continued ...
Content type
Image
Digest
Size
828.4 MB
Last updated
over 6 years ago
docker pull touatily/openabe