Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

github.com/san-lab/id-based-encryption

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/san-lab/id-based-encryption

  • v0.0.0-20240426080748-db8b35206c92
  • Source
  • Go
  • Socket score

Version published
Created
Source

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": "me@gmail.com",
    "Plaintext": "test"
}

POST /decrypt

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

TPKG APIs

GET /master-public-key

POST /extract

{
    "Id": "me@gmail.com"
}

FAQs

Package last updated on 26 Apr 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc