Created
November 4, 2017 09:39
-
-
Save mataprasad/706b60b07b981a26fd27255a78f00dc7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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