Skip to content
/ pubkit Public

Secure encryption library, provides cryptographic APIs to encrypt and authenticate messages with public-key cryptography.

Notifications You must be signed in to change notification settings

speier/pubkit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pubkit

Secure encryption library, provides cryptographic APIs to encrypt and authenticate messages with public-key cryptography.

Usage example

Public-key authenticated encryption uses Curve25519 and Poly1305 to encrypt and authenticate messages, high-level example:

// generate public/private key pairs
aPub, _ := pubkit.GenerateKeys()
bPub, bPrv := pubkit.GenerateKeys()

// encrypt for both 'a' and 'b' with public keys
secret := pubkit.Seal("hello", aPub, bPub)

// decrypt for 'b' with private key
doc := pubkit.Open(secret, bPrv)
fmt.Println(doc)

About

Secure encryption library, provides cryptographic APIs to encrypt and authenticate messages with public-key cryptography.

Resources

Stars

Watchers

Forks

Languages