Skip to content

Commit

Permalink
Merge pull request #4 from danielribeiro/readme-syntax-highlight
Browse files Browse the repository at this point in the history
Updating readme's syntax highlight
  • Loading branch information
dfed committed Jun 5, 2015
2 parents 5c5f8d6 + fe99a14 commit 7e54005
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Or manually checkout the submodule with `git submodule add git@github.com:Square

### Basic Initialization

```
```objc
VALValet *myValet = [[VALValet alloc] initWithIdentifier:@"Druidia" accessibility:VALAccessibilityWhenUnlocked];
```
Expand All @@ -44,7 +44,7 @@ The VALAccessibility enum is used to determine when your secrets can be accessed
### Reading and Writing
```
```objc
NSString *const username = @"Skroob";
[myValet setString:@"12345" forKey:username];
NSString *const myLuggageCombination = [myValet stringForKey:username];
Expand All @@ -62,15 +62,15 @@ This instance can be used to store and retrieve data securely across any app wri

### Sharing Secrets Across Devices with iCloud

```
```objc
VALSynchronizableValet *mySynchronizableValet = [[VALSynchronizableValet alloc] initWithIdentifier:@"Druidia" accessibility:VALAccessibilityWhenUnlocked];
```
This instance can be used to store and retrieve data that can be retrieved by this app on other devices logged into the same iCloud account with iCloud Keychain enabled. `mySynchronizableValet` can not read or modify values in `myValet` or `mySharedValet` because `mySynchronizableValet` is of a different class type. If iCloud Keychain is not enabled on this device, secrets can still be read and written, but will not sync to other devices.
### Protecting Secrets with Touch ID or iOS Passcode
```
```objc
VALSecureEnclaveValet *mySecureEnclaveValet = [[VALSecureEnclaveValet alloc] initWithIdentifier:@"Druidia"];
```

Expand Down

0 comments on commit 7e54005

Please sign in to comment.