Skip to content

An attempt-limiting, remote pepper provisioning protocol with a bundled Javascript implementation.

License

Notifications You must be signed in to change notification settings

dcousens/habanero

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

habanero

build status NPM

An experimental attempt-limiting, remote pepper provisioning protocol with a bundled Javascript implementation.

WARNING: This protocol has not been peer reviewed - use at your own risk.

Example

let hb = require('habanero/server')
let e = Buffer.from(process.env.HABANERO_SECRET, 'ascii')

// ...
hb.get(e, commitment, P, queryCb, limitCb, (err, result) => {
	if (err) return res.status(500).end()
	if (result.limited) return res.status(403).end() // optional (information leak)
	if (!result.pepper) return res.status(401).end()

	res.status(200).json(result)
})

LICENSE MIT

About

An attempt-limiting, remote pepper provisioning protocol with a bundled Javascript implementation.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published