Secure, simple key-value storage for iOS
- RNCryptor (AES) for the crypto
- NSUserDefaults for the persistent storage
- GZIP for compression
- Secure data persistence
- Save any object that subclasses NSObject
[Owl putObject:object withKey:@"key"];
T * object = [Owl getObjectWithKey:@"key"];
BOOL ret = [Owl containsKey:@"key"];
More samples for save
[Owl putObject:[NSArray arrayWithObjects:object1, object2,...] withKey:@"a"]; //save array [Owl putObject:@"Hello" withKey:@"b"]; //save string [Owl putObject:[NSNumber numberWithInt:1] withKey:@"c"]; //save number [Owl putObject:[[Foo alloc] init] withKey:@"d"]; //save an object
More samples for get
NSArray * value = [Owl getObjectWithKey:@"a"]; //load array NSString * value = [Owl getObjectWithKey:@"b"]; //load string NSNumber * value = [Owl getObjectWithKey:@"c"]; //load number Foo * value = [Owl getObjectWithKey:@"d"]; //load an object
###Encryption / Security
Owl uses AES encryption over the data to save it securely, all the security methods are written in pure C so that it is way harder to intercept/crack them.
Owl can persist everything that subclasses NSObject, assuming that all the properties of this object also do or are primitives. You should only avoid using structs that are not already NSCoding-compliant via NSValue.
Copyright (c) 2015 Felipe Cavalcanti Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.