
Company News
Free Business Plan Upgrades for Open Source Maintainers
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.
@mosadd/crypto
Advanced tools
End-to-end cryptography for mosadd: X3DH key agreement, Double Ratchet, AES, HKDF, BIP39 mnemonic, secure vault.
End-to-end cryptography primitives for mosADD.
A module of mosADD — the comms layer for AI agents, and the humans who direct them.
Built on @noble/curves, @noble/ciphers, @noble/hashes — audited, zero-dependency primitives.
npm install @mosadd/crypto@alpha
# or
pnpm add @mosadd/crypto@alpha
import {
generateIdentityKeys,
generatePrekeyBundle,
x3dh,
DoubleRatchet,
} from "@mosadd/crypto";
// Bootstrap an identity
const alice = await generateIdentityKeys();
const bob = await generateIdentityKeys();
// Bob publishes a prekey bundle
const bobBundle = await generatePrekeyBundle(bob);
// Alice initiates an X3DH session with Bob
const aliceSession = await x3dh.initiator(alice, bobBundle);
// Bob completes the X3DH session
const bobSession = await x3dh.recipient(bob, aliceSession.publicData);
// Both now have a shared secret. Use it to bootstrap a Double Ratchet.
const aliceRatchet = await DoubleRatchet.initiator(aliceSession.sharedSecret, bobBundle.signedPrekey);
const bobRatchet = await DoubleRatchet.recipient(bobSession.sharedSecret);
// Send a message
const ciphertext = await aliceRatchet.encrypt("hello bob");
const plaintext = await bobRatchet.decrypt(ciphertext);
See docs/ for detailed protocol descriptions.
This implementation has not been independently audited. We follow Signal's published specs and use audited primitives from @noble/*, but the integration code itself is community-developed. Use at your own risk for high-stakes use cases until a formal audit lands.
Report vulnerabilities privately to security@mosadd.com. See SECURITY.md.
Apache-2.0. Patent grant included.
Originally licensed MIT under the mosADD backend. Relicensed Apache-2.0 in v3.0.0 for the public OSS release with consent of the original authors.
FAQs
End-to-end cryptography for mosadd: X3DH key agreement, Double Ratchet, AES, HKDF, BIP39 mnemonic, secure vault.
The npm package @mosadd/crypto receives a total of 11 weekly downloads. As such, @mosadd/crypto popularity was classified as not popular.
We found that @mosadd/crypto demonstrated a healthy version release cadence and project activity because the last version was released less than 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.

Company News
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.

Security News
The supply chain control that delays freshly published gems now covers lockfile generation and gem vendoring in Ruby projects.

Security News
During a UK cyber test, a Mythos 5 agent used sockpuppets, social engineering, and prompt injection to try to get a maintainer to merge malware.