Skip to content

Seald SDK for iOS

This package is the Seald SDK for iOS.

It is available as a Cocoapod.

The current version is 0.7.1. Here is how you can add it to your Podfile:

ruby
target 'YourApp' do
  pod 'SealdSdk', '0.7.1'
end

Then, you can install with pod install.

You can then import it in your code with:

objc
#import <SealdSdk/SealdSdk.h>
swift
import SealdSdk

You can also see the example app for Objective-C, or the example app for Swift.

This package contains the main SealdSdk class, the SealdEncryptionSession class, as well as multiple helper classes.

SealdSdk

SealdSdk is the main class for the Seald SDK. It represents an instance of the Seald SDK.

You can instantiate it this way:

objc
SealdSdk* seald = [[SealdSdk alloc] initWithApiUrl:@"https://api.seald.io/"
                                             appId:@"YourAppId"
                                      databasePath:@"/myApp/seald_db"
                             databaseEncryptionKey:[NSData dataWithBytes:&SYM_KEY_DATA length:sizeof(64)]
                                      instanceName:@"my-instance"
                                          logLevel:0
                                        logNoColor:true
                         encryptionSessionCacheTTL:0
                                           keySize:4096
                                            error:&error];
swift
let seald = try! SealdSdk.init(
  apiUrl: "https://api.seald.io/",
  appId: "YourAppId",
  databasePath: "/myApp/seald_db", 
  databaseEncryptionKey: Data(SYM_KEY_DATA),
  instanceName: "my-instance",
  logLevel: 0,
  logNoColor: true,
  encryptionSessionCacheTTL: 0,
  keySize: 4096
)

This class then allows you to create an account, create or retrieve a SealdEncryptionSession, etc.

See the SealdSdk reference for more information.

SealdEncryptionSession

A SealdEncryptionSession allows you to encrypt / decrypt multiple messages or files.

This should not be instantiated directly, and should be either created with -[SealdSdk createEncryptionSessionWithRecipients:useCache:error:] or retrieved with -[SealdSdk retrieveEncryptionSessionWithSessionId:useCache:error:] or -[SealdSdk retrieveEncryptionSessionFromMessage:useCache:error:].

© 2024 Seald SAS

You can find the license information of Open Source libraries used in Seald SDK for mobile at https://download.seald.io/download/mobile_dependencies_licenses_0.7.1.txt.