Passwords: How to encrypt a string in AES-256 in iOS 12, XCode 10.
Published in
1 min readSep 30, 2018
Install the latest version of CryptoSwift by adding this to your PodFile:
pod 'CryptoSwift', :git => "https://github.com/krzyzanowskim/CryptoSwift", :branch => "master"
Here’s the code.
I recommend you use this to create your key and IV.
Oscar