This is a demo project using Crypto++ for iOS. See Crypto++ project page http://www.cryptopp.com/ for more info.
- open the Terminal and enter external/scripts directory.
- then, type ./build-cryptopp-562.sh
- if succeeded, external/include/cryptopp/*.h and external/lib/libcryptopp.a is there.
check libcryptopp.a using file commad like this
file external/lib/libcryptopp.a
external/lib/libcryptopp.a: Mach-O universal binary with 4 architectures
external/lib/libcryptopp.a (for architecture i386): current ar archive random library
external/lib/libcryptopp.a (for architecture armv6): current ar archive random library
external/lib/libcryptopp.a (for architecture armv7): current ar archive random library
external/lib/libcryptopp.a (for architecture armv7s): current ar archive random library
now, you get a universal binary of Crypto++
- Double click Cryptopp-for-iOS.xcodeproj
- Just run with XCode. That't too easy.
Currently, only hash algorithm MD5/SHA examples are available.
Crypto++ is based on public domain license, So I decided to apply this demo app the public domain license.
Have fun with Crypto++ on the iOS devices!
https://github.com/3ign0n/CryptoPP-for-iOS
Xcode Command Line Tools
download cryptopp.562.a.7z (i386,armv6,armv7,armv7s)
You can use it directly
Config your Xcode project, otherwise it will compile error
- Set "C++ Language Dialect" and "C++ standard Library" is "Compiler Default"
- Add "Header Search Paths"
"$(SRCROOT)/external/include"
"$(SRCROOT)/external/include/cryptopp"
- Add "Library Search Paths"
"$(SRCROOT)/external/lib"