Latest 1.0.1
Homepage https://github.com/SandeepAggarwal/CryptoppECC
License MIT
Platforms ios 7.0, osx 10.10, requires ARC
Authors

CryptoppECC for iOS and MacOSX

CocoaPods Compatible
Platform

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

Motivation

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.

Features

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

Installation with CocoaPods

Podfile

pod "CryptoppECC"

Methods

Encyption/Decryption

#import "CryptoppECC.h"
-(void)randomKeysEncryptDecrypt;

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

-(void)decrypt:(NSString*)private_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;
-(void)exampleVerify;

Requirements

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

Contact

@sandeepCool77

Sandeep Aggarwal

License

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 https://groups.google.com/forum/#!topic/cryptopp-users/LvIfAP4llx4 made a patch for compatibility with Bouncy Castle.nn*Also took help from https://github.com/3ign0n/CryptoPP-for-iOS for calculating Hash.",
    "homepage": "https://github.com/SandeepAggarwal/CryptoppECC",
    "license": {
        "type": "MIT",
        "file": "LICENSE.txt"
    },
    "authors": {
        "Sandeep Aggarwal": "[email protected]"
    },
    "social_media_url": "https://twitter.com/sandeepCool77",
    "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/builder.sh",
    "source": {
        "git": "https://github.com/SandeepAggarwal/CryptoppECC.git",
        "tag": "1.0.1"
    },
    "source_files": [
        "CryptoppECC/CryptoppLibrary/*.h",
        "CryptoppECC/CryptoppWrapper/*.{h,mm}"
    ],
    "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