
Product
Introducing Supply Chain Attack Campaigns Tracking in the Socket Dashboard
Campaign-level threat intelligence in Socket now shows when active supply chain attacks affect your repositories and packages.
@hyperdivision/pin-peer
Advanced tools
pin-peerVerify a secure connection using a manual PIN
const pin = require('pin-peer')
var outOfBandPin // this would normally be communicated somehow
const t = transport()
const i = pin.initiator(transportStreamA, function (verify) {
return verify(null, outOfBandPin)
})
const r = pin.responder(transportStreamB)
r.once('pin', (pin) => {
outOfBandPin = pin
})
// Hook up transportStreamA and transportStreamB
const initiatorStream = pin.initiator(rawStream, onverifypin(verify(err, enteredPin)), prolouge = '')If the pin is incorrect the initiatorStream is closed immediately.
enteredPin must be a Base32 encoded string.
prolouge can be an arbitrary string that was used to find the other peer.
This doesn't add security to the encryption key, but does ensure both parties
have the same view of how anything that happened prior to the noise handshake.
const bool = initiatorStream.secureBoolean indicating whether the secure handshake has completed
initiatorStream.once('secure', function () {})Emitted once the handshaking has completed
const responderStream = pin.responder(rawStream, prolouge = '')If the initiator did not accept the pin the responderStream is closed immediately.
prolouge can be an arbitrary string that was used to find the other peer.
This doesn't add security to the encryption key, but does ensure both parties
have the same view of how anything that happened prior to the noise handshake.
responderStream.once('pin', pinStr)Emitted when the pin is ready
const pinStr = responderStream.pinnull until the pin is ready. Encoded as a Base32 string
npm install pin-peer
FAQs
Verify a secure connection using a manual PIN
The npm package @hyperdivision/pin-peer receives a total of 0 weekly downloads. As such, @hyperdivision/pin-peer popularity was classified as not popular.
We found that @hyperdivision/pin-peer demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers 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.

Product
Campaign-level threat intelligence in Socket now shows when active supply chain attacks affect your repositories and packages.

Research
Malicious PyPI package sympy-dev targets SymPy users, a Python symbolic math library with 85 million monthly downloads.

Security News
Node.js 25.4.0 makes require(esm) stable, formalizing CommonJS and ESM compatibility across supported Node versions.