Categorygithub.com/kasperdi/BonehFranklin-golang
repository
0.0.0-20221210142327-f1a679c340a0
Repository: https://github.com/kasperdi/bonehfranklin-golang.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# README

Boneh Franklin

Intended for learning purposes only! This package uses bilinear pairings on the BLS12-381 curve.

Running the PKG

go build ./cmd/pkg/

# No parameters, just run! Ctrl+C to stop.
./pkg

Running the user CLI

go build ./cmd/user/

# Get the public parameters for the scheme (necessary for encrypting and decrypting)
./user get-parameters "<PKG-HOSTNAME>"

# Request a private key for a given ID (necessary for decrypting)
./user get-private-key "<PKG-HOSTNAME>" "<REQUESTED-ID>"

# Encrypt a message! This uses the locally stored params.bin file.
./user encrypt "<RECIPIENT-ID>" "<MESSAGE>"
# Output: hex encoded ciphertext

# Decrypt a received message! This uses the locally stored params.bin and privatekey.bin files. 
./user decrypt "<HEX-CIPHERTEXT>"
# Output: your message!