You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The XenIssuing SDK includes a collection of modules designed to handle sensitive operations with ease and security in your iOS applications. Notably:
6
-
- SecureSession: This module is responsible for ensuring encrypted communication between the XenIssuing SDK and your iOS application.
5
+
The XenIssuing SDK provides a secure way to handle sensitive operations in your iOS applications. This SDK includes:
6
+
-**SecureSession**: A module that ensures encrypted communication between your application and Xendit's services.
7
7
8
8
## Prerequisites
9
9
10
-
To utilize the XenIssuing SDK, a public key granted by Xendit is required. You can obtain this key by contacting Xendit directly.
10
+
- iOS 10.15 or later
11
+
- Swift 5.0 or later
12
+
- A public key from Xendit (Contact Xendit to obtain this)
11
13
12
14
## Usage
13
15
14
-
### Establishing Secure Sessions
15
-
16
-
The SecureSession module aids in establishing an encrypted communication link between the XenIssuing SDK and your application. Below is a Swift example demonstrating how to create a secure session and decrypt card data:
16
+
### Creating a Secure Session
17
17
18
18
```swift
19
19
importXenissuing
20
20
21
-
let secureSession =try Xenissuing.createSecureSession(xenditPublicKeyData: Data(base64Encoded: validPublicKey)!)
22
-
let sessionId = secureSession.getKey().base64EncodedString()
21
+
let publicKey ="""
22
+
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA... // Your RSA public key without header/footer
23
+
"""
24
+
25
+
do {
26
+
// Create secure session
27
+
let secureSession =try Xenissuing.createSecureSession(
0 commit comments