Skip to content

@seald-io/sdk

SealdSDK allows you to use the full power of Seald encryption, directly in your application, whether a web-application in the browser, a Node.js server, a react-native mobile app, ...

You can create and retrieve Seald identities for your app's users, encrypt and decrypt files, create encryption sessions, add or revoke recipients ...

You can find the full changelog at https://www.seald.io/changelog#sdk.

Example:

javascript
import SealdSDK from '@seald-io/sdk'

const seald = SealdSDK({ appId, apiURL })
await seald.initialize()

// Creating a Seald identity
const { sealdId: mySealdId } = await seald.initiateIdentity({ signupJWT })

// Encrypting / Decrypting data
const encryptedFile = await seald.encryptFile('Secret file content', 'SecretFile.txt', { sealdIds: [otherUserSealdId] })
const decryptedFile = await seald.decryptFile(encryptedFile)
import SealdSDK from '@seald-io/sdk'

const seald = SealdSDK({ appId, apiURL })
await seald.initialize()

// Creating a Seald identity
const { sealdId: mySealdId } = await seald.initiateIdentity({ signupJWT })

// Encrypting / Decrypting data
const encryptedFile = await seald.encryptFile('Secret file content', 'SecretFile.txt', { sealdIds: [otherUserSealdId] })
const decryptedFile = await seald.decryptFile(encryptedFile)

SDK

SDK Constructor

Helpers

Other