Latest 1.0.0-alpha-2
License MIT
Platforms ios 8.0


Build Status
Carthage compatible

Very Good Security Vault iOS SDK


This SDK is written in Swift 3.0, it requires Xcode 8.0 or above.

Usage example in Swift 3.0

import VaultSDK

let api = VaultAPI(
    baseURL: URL(string: "")!,
    publishableKey: "demo-user"
    payload: "4111111111111111",
    failure: { error in
        // Handle the error here
    success: { token in
        // Use the token here

Usage example in Objective C

Import the SDK like this

@import VaultSDK;


VaultAPI *api = [[VaultAPI alloc] initWithBaseURL:[NSURL URLWithString:@""] publishableKey:@"demo-user" urlSession:[NSURLSession sharedSession]];

[api createTokenWithPayload:@"4111111111111111" failure:^(NSError * _Nonnull error) {
    // Handle the error here
} success:^(NSDictionary<NSString *,id> * _Nonnull token) {
    // Use the token here

Install via CocoaPods

To install the VaultSDK via CocoaPods, put following line in your Podfile

pod 'VaultSDK', '~> 1.0'

Install via Carthage

To install the VaultSDK via Carthage, put following line in your Cartfile

github "verygoodsecurity/vgs-ios-sdk" ~> 1.0

Run example app

Open VaultSDK.xcworkspace with Xcode, select target VaultSDKExample and a simulator then run it via CMD + R.

Latest podspec

    "name": "VaultSDK",
    "version": "1.0.0-alpha-2",
    "summary": "Very Good Security Vault iOS SDK for tokenizing senstive data",
    "homepage": "",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    "authors": {
        "Fang-Pen Lin": "[email protected]"
    "platforms": {
        "ios": "8.0"
    "source": {
        "git": "",
        "tag": "v1.0.0-alpha-2"
    "source_files": [
    "pod_target_xcconfig": {
        "SWIFT_VERSION": "3.0"
    "pushed_with_swift_version": "3.0"

Pin It on Pinterest

Share This