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.
- Also supports Verify the signed message using ECDSA
- Compatible with Android's Bouncy Castle.
pod "CryptoppECC"
#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;
#import "CryptoppECDSA.h"
-(BOOL)verifyMessage:(NSString*)message signedCertificate:(NSString*)signedCertificateInBase64 compressedServerPublicPoint:(NSString*)compressedServerPublicPointInBase64 curve:(CurveType)curveType;
-(void)exampleVerify;
ViewPager supports minimum iOS 7 and minimum MacOSX 10.10 and uses ARC.
CryptoppECC is released under the MIT license. See LICENSE for details.