To run the example project, clone the repo, and run pod install from the Example directory first.
Add the package to your Package.swift dependencies:
.package(url: "https://github.com/khipu/KhenshinSecureMessage.git", from: "1.4.1")
Then add KhenshinSecureMessage to your target's dependencies, or in Xcode use
File → Add Package Dependencies… with the same URL.
En SPM la criptografía se provee vía
tweetnacl-swiftwrap(móduloTweetNacl); en CocoaPods víaKHTweetNaclSwift. La API (NaclBox/NaclSecretBox) es idéntica y la compatibilidad está cubierta por los tests.
KhenshinSecureMessage is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'KhenshinSecureMessage'This pod depends on TweetNacl which was compiled to old version of apple's SDK, in recent XCodes version please add
post_install do |installer|
installer.generated_projects.each do |project|
project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '12.0'
end
end
end
end At the end of your Podfile in order to tell the compiler to update all IPHONEOS_DEPLOYMENT_TARGET to 12.0 (if you need a higher iOS version, please replace it).
Khipu, developers@khipu.com
KhenshinSecureMessage is available under the MIT license. See the LICENSE file for more info.