
Security News
The Changelog Podcast: Practical Steps to Stay Safe on npm
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.
JavaScript implementation of the OPAQUE asymmetric password authenticated key exchange (aPAKE) protocol
JavaScript implementation of the OPAQUE asymmetric PAKE (aPAKE) protocol
Implementation of this Internet Draft proposal.
You may also install this module from npm.
npm install apake
The process generally works as follows:
// Each party includes the 1-out-of-n module with IO:
const OT = require('apake')(IO);
// Login credentials never reaches the server in plaintext
const user_id = 'newuser';
const password = 'correct horse battery staple';
// Sign up
OPAQUE.client_register(password, user_id).then(console.log.bind(null, 'Registered:'));
// Log in for the first time and receive a session token
OPAQUE.client_authenticate(password, user_id).then(console.log.bind(null, 'Shared secret:'));
// Register a new user
let user = OPAQUE.server_register();
// Handle a login attempt
OPAQUE.server_authenticate(user.id, user.pepper);
// Result:
'Registered: true'
'Login for newuser succeeded with: 4ccdf3b8cacf08273a085c952aaf3ee83633e6afcedf4f86c00497e862f43c78'
'Shared secret: 4ccdf3b8cacf08273a085c952aaf3ee83633e6afcedf4f86c00497e862f43c78'
Please read example.js for a more detailed example or run it with node test/test.js.
FAQs
JavaScript implementation of the OPAQUE asymmetric password authenticated key exchange (aPAKE) protocol
We found that apake demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.

Security News
Experts push back on new claims about AI-driven ransomware, warning that hype and sponsored research are distorting how the threat is understood.

Security News
Ruby's creator Matz assumes control of RubyGems and Bundler repositories while former maintainers agree to step back and transfer all rights to end the dispute.