Latest 1.0.5
Homepage https://github.com/LinberDuan/Shamir
License MIT
Platforms ios 6.0
Authors

init

char *str = "Hello Shamir";
NSData *data = [NSData dataWithBytes:str length:strlen(str)];
NSArray<NSData*> *shaDataArray = [Shamir create_shares:data n:9 k:2];

NSString *testStr = [NSString stringWithCharacters:shaDataArray[0].bytes length:shaDataArray[0].length];

NSData *comShares = [Shamir combine_shares:shaDataArray k:2];

NSString *comStr = [NSString stringWithCString:comShares.bytes encoding:NSUTF8StringEncoding];

Latest podspec

{
    "name": "Shamir",
    "version": "1.0.5",
    "summary": "Shamir for IOS.",
    "description": "IOS Shamir",
    "homepage": "https://github.com/LinberDuan/Shamir",
    "license": "MIT",
    "authors": {
        "LinberDuan": "[email protected]"
    },
    "platforms": {
        "ios": "6.0"
    },
    "source": {
        "git": "https://github.com/LinberDuan/Shamir.git",
        "tag": "1.0.5"
    },
    "source_files": "Shamir/**/*.{h,m,c}"
}

Pin It on Pinterest

Share This