Skip to content

Latest commit

 

History

History
44 lines (32 loc) · 635 Bytes

README.md

File metadata and controls

44 lines (32 loc) · 635 Bytes

Identity-based Encryption

Prototype of identity-based encryption based on Boneh-Franklin scheme, leveraging gnark-crypto library.

Run

go build
./id-based-encryption
./id-based-encryption -mode tpgk

Client APIs

GET /master-public-key

POST /encrypt

{
    "Id": "[email protected]",
    "Plaintext": "test"
}

POST /decrypt

{
    "UserPrivKey": "04d1...",
    "Ciphertext": "7b22..."
}

TPKG APIs

GET /master-public-key

POST /extract

{
    "Id": "[email protected]"
}