Latest 1.0.1
License MIT
Platforms ios 7.0, osx 10.10, requires ARC

CryptoppECC for iOS and MacOSX

CocoaPods Compatible

CryptoppECC-Encryption/Decryption using ECC(Elliptic curve cryptography).


Cryptopp is a great free C++ class library of cryptographic schemes.
But for performing such encryption one has to make a static library first from the source code files which is a headache to make for every platform.
So, I here made a pod which runs a script to make that library depending upon your XCode SDK (both iOS and MacOSX) and then installs it as a dependency in your project.
I also included some Encryption/Decryption methods which took my lot of time to work properly.


  1. Also supports Verify the signed message using ECDSA
  2. Compatible with Android’s Bouncy Castle.

Installation with CocoaPods


pod "CryptoppECC"



#import "CryptoppECC.h"

-(void)encrypt:(NSString*) public_point;


-(NSString*) decrypt:(NSString*) encryptedMessageInBase64 : (NSString*) privateKeyExponentInBase64 curve:(CurveType)curveType;

-(NSString*) encrypt:(NSString*) message : (NSString*) compressedPublicKeyPointInBase64 curve:(CurveType)curveType;

Verify Signing

#import "CryptoppECDSA.h"
-(BOOL)verifyMessage:(NSString*)message signedCertificate:(NSString*)signedCertificateInBase64  compressedServerPublicPoint:(NSString*)compressedServerPublicPointInBase64  curve:(CurveType)curveType;


ViewPager supports minimum iOS 7 and minimum MacOSX 10.10 and uses ARC.



Sandeep Aggarwal


CryptoppECC is released under the MIT license. See LICENSE for details.

Latest podspec

    "name": "CryptoppECC",
    "version": "1.0.1",
    "summary": "CryptoppECC-Encryption/Decryption using ECC(Elliptic curve cryptography)",
    "description": "CryptoppECC-Encryption/Decryption using ECC(Elliptic curve cryptography)n*Contains functions for encryption,decryption using ECC and verify a signed certificate using ECDSA.nn*Using!topic/cryptopp-users/LvIfAP4llx4 made a patch for compatibility with Bouncy Castle.nn*Also took help from for calculating Hash.",
    "homepage": "",
    "license": {
        "type": "MIT",
        "file": "LICENSE.txt"
    "authors": {
        "Sandeep Aggarwal": "[email protected]"
    "social_media_url": "",
    "platforms": {
        "ios": "7.0",
        "osx": "10.10"
    "osx": {
        "xcconfig": {
            "OTHER_LDFLAGS": "-lc++"
        "vendored_libraries": "CryptoppECC/CryptoppLibrary/bin/macosx/libcryptopp.a"
    "prepare_command": "sh CryptoppECC/CryptoppLibrary/",
    "source": {
        "git": "",
        "tag": "1.0.1"
    "source_files": [
    "public_header_files": "CryptoppECC/CryptoppWrapper/*.h",
    "ios": {
        "vendored_libraries": "CryptoppECC/CryptoppLibrary/bin/ios/libcryptopp.a"
    "prefix_header_file": "CryptoppECC/cryptodemolib.pch",
    "requires_arc": true

Pin It on Pinterest

Share This