# CryptoppECC **Repository Path**: ifind_luopan_admin/CryptoppECC ## Basic Information - **Project Name**: CryptoppECC - **Description**: No description available - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-03-15 - **Last Updated**: 2021-03-15 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # CryptoppECC for iOS and MacOSX [![Cocoapods Compatible](https://img.shields.io/cocoapods/v/CryptoppECC.svg)](https://img.shields.io/cocoapods/v/CryptoppECC.svg) [![Platform](https://img.shields.io/cocoapods/p/CryptoppECC.svg?style=flat)](http://cocoadocs.org/docsets/CryptoppECC) CryptoppECC-Encryption/Decryption using ECC(Elliptic curve cryptography). ### Motivation >[Cryptopp](https://www.cryptopp.com/) 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 ```ruby pod "CryptoppECC" ``` ## Methods ### Encyption/Decryption ```objective-c #import "CryptoppECC.h" ``` ```objective-c -(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 ```objective-c #import "CryptoppECDSA.h" ``` ```objective-c -(BOOL)verifyMessage:(NSString*)message signedCertificate:(NSString*)signedCertificateInBase64 compressedServerPublicPoint:(NSString*)compressedServerPublicPointInBase64 curve:(CurveType)curveType; -(void)exampleVerify; ``` ### Added Example file for Android's Bouncy Castle interoperability [CryptoppECC/ECC.java](https://github.com/SandeepAggarwal/CryptoppECC/blob/master/ECC.java) ## Requirements ViewPager supports minimum iOS 7 and minimum MacOSX 10.10 and uses ARC. ## Contact [@sandeepCool77](https://twitter.com/sandeepCool77) [Sandeep Aggarwal](mailto:smartsandeep1129@gmail.com) ## License CryptoppECC is released under the MIT license. See LICENSE for details.