Skip to content

Instantly share code, notes, and snippets.

@mataprasad
Created November 4, 2017 09:39
Show Gist options
  • Save mataprasad/706b60b07b981a26fd27255a78f00dc7 to your computer and use it in GitHub Desktop.
Save mataprasad/706b60b07b981a26fd27255a78f00dc7 to your computer and use it in GitHub Desktop.
import UIKit
class ViewController: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()
let input:String = "Text to encrypt";
debugPrint("input:" + input);
let cipher:String = CryptoHelper.encrypt(input:input)!;
debugPrint("cipher:" + cipher);
//cipher = "kb1TyFRUcMaY6Z1vCRravA==";
//debugPrint("cipher:" + cipher);
let output:String = CryptoHelper.decrypt(input:cipher)!;
debugPrint("output:" + output);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment