Sen descrición

Marcin Krzyżanowski 108df19c5b Update OpenSSL dependency where Swift issue is workarounded %!s(int64=11) %!d(string=hai) anos
CryptoSwift 108df19c5b Update OpenSSL dependency where Swift issue is workarounded %!s(int64=11) %!d(string=hai) anos
CryptoSwift.xcodeproj fb71abe2e7 Bignum update fixing some memory leaks %!s(int64=11) %!d(string=hai) anos
CryptoSwift.xcworkspace 2bb301a771 NSData extension initial %!s(int64=11) %!d(string=hai) anos
CryptoSwiftTests fb71abe2e7 Bignum update fixing some memory leaks %!s(int64=11) %!d(string=hai) anos
Pods 108df19c5b Update OpenSSL dependency where Swift issue is workarounded %!s(int64=11) %!d(string=hai) anos
.gitignore 2bb301a771 NSData extension initial %!s(int64=11) %!d(string=hai) anos
CryptoSwift-Bridging-Header.h 108df19c5b Update OpenSSL dependency where Swift issue is workarounded %!s(int64=11) %!d(string=hai) anos
CryptoSwift.podspec bc161def14 Readme with installation instruction %!s(int64=11) %!d(string=hai) anos
LICENSE 89b2c5a596 Initial commit %!s(int64=11) %!d(string=hai) anos
Podfile 108df19c5b Update OpenSSL dependency where Swift issue is workarounded %!s(int64=11) %!d(string=hai) anos
Podfile.lock 108df19c5b Update OpenSSL dependency where Swift issue is workarounded %!s(int64=11) %!d(string=hai) anos
README.md 1c7c2d8f35 Update README.md %!s(int64=11) %!d(string=hai) anos

README.md

#CryptoSwift

Crypto related helpers for Swift.

##Requirements For now CryptoSwift depends on OpenSSL

##Usage

import CryptoSwift

var data:NSData = NSData(bytes: [49, 50, 51] as Byte[], length: 3)
let md5:NSData = CryptoHash.md5.hash(data)

// Printout MD5 as String
NSLog(md5.toHexString())

####Cocoapods

Caution: Podspec support for Swift is not yet ready, however some fixes has been made see: https://github.com/CocoaPods/CocoaPods/pull/2222

so... you need to do some manual work

  1. Setup Podfile

    platform :ios, '7.0'
    link_with 'CryptoSwift', 'CryptoSwiftTests'
    pod 'OpenSSL-Universal'
    
  2. Setup binding header:

Copy and header file CryptoSwift-Bridging-Header.h to you project and setup Objective-C Bridging Header in Builds Settings of you project with name of this header file.

  1. Link CryptoSwift with you target

Smaple fonfiguration

Done.