GithubHelp home page GithubHelp logo

shanshuiren / cryptoppecc Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sandeepaggarwal/cryptoppecc

0.0 2.0 0.0 1.21 MB

CryptoppECC-Encryption/Decryption using ECC(Elliptic curve cryptography) for iOS and MacOSX

License: MIT License

Ruby 0.07% C++ 93.07% Makefile 0.31% Protocol Buffer 0.01% C 1.16% Shell 0.13% Assembly 3.50% Objective-C 0.21% Objective-C++ 1.53%

cryptoppecc's Introduction

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.

cryptoppecc's People

Contributors

readmecritic avatar sandeepaggarwal avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.