Security Through Transparency

    Socket0's vault SDK is open source under the MIT license. Inspect every line of code, run it locally, contribute improvements.

    Open Source Vault SDK.

    Use @socket0/vault-sdk in any project, commercial or personal, forever.

    MIT LicenseOpen Source SDKs

    Python SDK

    GitHub

    Python encryption library + REST API client for server-side applications.

    Key groups: one keypair, many API keys that can open it
    X25519 key agreement, HKDF-SHA256, AES-256-GCM
    The same ten vault operations as the TypeScript package
    $ Not published yet

    TypeScript SDK

    GitHub

    TypeScript/JavaScript encryption for browsers and Node.js.

    Web Crypto API implementation (no native dependencies)
    React components for secret editing UI
    Works in Node.js, browsers, edge runtimes
    $ npm install @socket0/vault-sdk

    Want More?

    Get managed integrations and priority support with Socket0 Cloud.

    SDK Comparison

    FeaturePython SDKWeb SDK
    LanguagePython 3.10+TypeScript/JavaScript
    RuntimeServer, CLIBrowser, Node.js, Edge
    EncryptionRSA-OAEP + AES-256-GCMRSA-OAEP + AES-256-GCM
    Crypto LibrarypycryptodomexWeb Crypto API
    React Components-✓
    CLI Tool✓ (s0 command)-

    Cross-Platform Compatibility

    Secrets encrypted with the Python SDK can be decrypted with the Web SDK and vice versa.

    Seal — needs only the public half
    import { generateGroup, seal } from "@socket0/vault-sdk"
    const group = await generateGroup()
    const sealed = await seal(secret, group.publicKey, aad)
    Open — needs a key somebody holds
    import { unwrap, open } from "@socket0/vault-sdk"
    const k1 = await unwrap(entry, apiKey, tenantId, groupId)
    const secret = await open(sealed, k1, aad)

    Cloud-Only Features

    The following components are available exclusively through Socket0 Cloud

    Cloud Console
    Multi-tenant management API
    Integrations
    Cloudflare, HubSpot, Linear, Notion providers
    Usage Analytics
    API usage metrics and insights
    Webhook Notifications
    Real-time alerts for secret access
    Secrets Versioning
    History and rollback for values
    Priority Support
    Dedicated support channel and SLAs

    Contributing

    We welcome contributions to the open source SDKs

    1
    Report bugs — Open GitHub issues
    2
    Security issues — Use the contact form
    3
    Pull requests — Fork, branch, PR
    4
    Documentation — Improve examples
    # not published yet
    git clone github.com/socketzero
    uv sync
    uv run pytest

    License

    The Socket0 SDKs are released under the MIT License

    MIT License

    Copyright (c) 2024 Socket0

    Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software...