CryptoppECC
CryptoppECC-Encryption/Decryption using ECC(Elliptic curve cryptography) for iOS and MacOSX
Install / Use
/learn @SandeepAggarwal/CryptoppECCREADME
CryptoppECC for iOS and MacOSX
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
- Also supports Verify the signed message using ECDSA
- 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;
Added Example file for Android's Bouncy Castle interoperability
Requirements
ViewPager supports minimum iOS 7 and minimum MacOSX 10.10 and uses ARC.
Contact
License
CryptoppECC is released under the MIT license. See LICENSE for details.
Related Skills
node-connect
342.0kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
84.7kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
342.0kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
commit-push-pr
84.7kCommit, push, and open a PR
