RudderDatabaseEncryption 1.1.0

RudderDatabaseEncryption 1.1.0

Maintained by RudderStack.



 
Depends on:
Rudder~> 1.21
SQLCipher~> 4.0
 

  • By
  • RudderStack

The Customer Data Platform for Developers

Website · Documentation · Community Slack


Integrating RudderStack iOS SDK with SQLCipher

This repository contains the resources and assets required to integrate the RudderStack iOS SDK with SQLICipher.

Important: This feature is supported for SQLCipher v4.0 and above.

Step 1: Integrate the SDK with SQLCipher

  1. RudderDatabaseEncryption is available through CocoaPods. To install it, add the following line to your Podfile:
pod 'RudderDatabaseEncryption', '~> 1.0.0'
  1. Run the pod install command.

Step 2: Import the SDK

Swift

import RudderDatabaseEncryption

Objective C

@import RudderDatabaseEncryption;

Step 3: Initialize the RudderStack client (RSClient)

Place the following in your AppDelegate under the didFinishLaunchingWithOptions method.

Objective C

RSConfigBuilder *builder = [[RSConfigBuilder alloc] init];
[builder withDataPlaneUrl:DATA_PLANE_URL];
[builder withDBEncryption:[[RSDBEncryption alloc] initWithKey:@"test1234" enable:YES databaseProvider:[RSEncryptedDatabaseProvider new]]];
[RSClient getInstance:WRITE_KEY config:[builder build]];

Swift

let builder: RSConfigBuilder = RSConfigBuilder()
            .withDataPlaneUrl(DATA_PLANE_URL)
			.withDBEncryption(RSDBEncryption(key: "test1234", enable: true, databaseProvider: RSEncryptedDatabaseProvider()))
RSClient.getInstance(WRITE_KEY, config: builder.build())

About RudderStack

RudderStack is the customer data platform for developers. With RudderStack, you can build and deploy efficient pipelines that collect customer data from every app, website, and SaaS platform, then activate your data in your warehouse, business, and marketing tools.

Start building a better, warehouse-first CDP that delivers complete, unified data to every part of your customer data stack. Sign up for RudderStack Cloud today.

Contact us

For queries on configuring or using this integration, start a conversation in our Slack community.