Home

Awesome

multikey - Require n-of-N keys to decrypt

Go Report Card GitHub issues Documentation license Mentioned in Awesome Go

Allows for the creation of decryption rules for secrets at rest, for example:

Example use cases:

... many more

Benefits of using this:

Usage

import "github.com/adrianosela/multikey"

Encrypt:

mkEncryptedSecret, err := multikey.Encrypt(plainTxtSecret, pubKeys, requireN)
checkErr(err)

Decrypt:

plainTxtSecret, err := multikey.Decrypt(mkEncryptedSecret, privKeys)
checkErr(err)