Giter Site home page Giter Site logo

background_keychain's Introduction

Reading from Keychain in the background

This is an iOS demo app that reads from Keychain while being in the background.

Here is how it works:

  • First, we write to Keychain with accessibleAfterFirstUnlock.

  • Then we lock the device.

  • While in the background, the app reads from Keychain and updates a label on screen.

  • Finally, we unlock the device and check if that read was successful.

This app was created in order to check if it's required to set access access level (kSecAttrAccessible) when reading from keychain. See the following discussion for more info.

How to use

1. Download this repository and run the app on your device

https://github.com/evgenyneu/background-keychain.git

Keychain Background Read Demo 1

2. Click "Write to Keychain" button

The app will create a Keychain item with kSecAttrAccessible setting set to accessibleAfterFirstUnlock.

Keychain Background Read Demo 1

3. Finally, lock your device and then unlock it

After entering the background, the app will read from the Keychain and update a label on screen. After unlocking, you will see if that background read was successful.

Keychain Background Read Demo 1

background_keychain's People

Contributors

idealfoxman0830 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.