touatily/oabe is docker image of openABE
docker pull touatily/oabe
CP-ABE
I - Setup
docker run -it --rm -v$(pwd):/root -w /root touatily/oabe oabe_setup -s CP
This will generate master public key and master secret key (keys of the attribute authority)
II - Key Generation
docker run -it --rm -v$(pwd):/root -w /root touatily/oabe 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"
III - Encryption
docker run -it --rm -v$(pwd):/root -w /root touatily/oabe oabe_enc -s CP -e "student AND cybersecurity" -i file_to_encrypt -o encrypted_file
IV - Decryption
docker run -it --rm -v$(pwd):/root -w /root touatily/oabe oabe_dec -s CP -k sk.key -i encrypted_file.cpabe -o decrypted_file
Content type
Image
Digest
Size
828.4 MB
Last updated
over 6 years ago
docker pull touatily/oabe