hyperoslo / Keychains

:key: A keychain wrapper that is so easy to use that your cat could use it.
Other
75 stars 6 forks source link

Feature Stash core foundation #1

Closed zenangst closed 8 years ago

zenangst commented 8 years ago

With this PR, Stash can get, insert, update and delete password from the keychain.

Insert and update both use the same method which looks like this;

Stash.setPassword(password, service: service, account: account)

Deleting a password for a service & account looks like this;

Stash.delete(service, account: account)

And finally, when you want to get the password you use;

Stash.password(service, account: account)

Pretty straight forward, could probably be improve in terms of the public API but this is a start.

zenangst commented 8 years ago

@RamonGilabert @vadymmarkov I think this should be good for now.

vadymmarkov commented 8 years ago

@zenangst :star: