Latest0.0.1
Homepagehttps://github.com/jeffargast/RSSecrets
LicenseMIT
Platformsios , requires ARC
Authors

Set and get encrypted values from the iOS keychain. Usage is straight forward:

// Set string to be encrypted in the keychain
[RSSecrets setString:@"Secret String" forKey:@"aKey"];

// Get string from the keychain for the key 
NSString *secretString = [RSSecrets stringForKey:@"aKey"];

// Delete string/data for a given key
[RSSecrets removeObjectForKey:@"aKey"];

Also works with NSData:

// Set data to be encrypted in the keychain. Presupposes a pointer named
// bytes of bytesLength size
NSData* byteData = [NSData dataWithBytes:bytes length:bytesLength];
[RSSecrets setData:byteData forKey:@"aKey"];

// Get data from the keychain for the key 
NSData *secretData = [RSSecrets dataForKey:@"aKey"];

// Delete string/data for a given key
[RSSecrets removeObjectForKey:@"aKey"];

Latest podspec

{
    "name": "RSSecrets",
    "version": "0.0.1",
    "summary": "Set and get encrypted values from the iOS keychain.",
    "homepage": "https://github.com/jeffargast/RSSecrets",
    "license": {
        "type": "MIT",
        "file": "README"
    },
    "authors": {
        "Jeff Argast": "[email protected]"
    },
    "source": {
        "git": "https://github.com/jeffargast/RSSecrets.git",
        "commit": "292857e2fa3ed60dfebd0b7956858cfb4c59bcb5"
    },
    "platforms": {
        "ios": null
    },
    "source_files": "*.{h,m}",
    "requires_arc": true
}

Pin It on Pinterest

Share This