Code Monkey home page Code Monkey logo

cryptore-android-keystore's Introduction

Based on ./artwork/logo.png

Cryptore

./keystore.png

More info

Information at rest secure storage:

Android:

  • Store in cleartext

  • Store encrypted using a symmetric key

  • Using the Android Keystore (symmetric, asymmetric based on version) - hackable on Rooted device, however gets harder with newer Androids

  • Store encrypted using asymmetric keys (SMSPKI) - very secure (accepting the SMS spoof risk), but also complex to integrate and setup. As a disadv. SMS costs also money.

iOS:

  • Store in cleartext
  • Store encrypted using a symmetric key
  • Using the KeyChain (assume it’s asymmetric)
  • Store encrypted using asymmetric keys (SMSPKI)

IMHO Balance between implementation complexity and security

Android:

  • KeyStore

iOS:

  • Keychain

The Android Keystore provides access to special secure hardware for storing cryptographic keys. The Android Keystore was significantly enhanced in Android 6.0 (API level 23) to provide more capabilities on those devices with the hardware to support them. On devices with the appropriate hardware support, keys can be generated within the secure hardware, and then used to perform cryptographic operations on user data, without the keys ever leaving the secure hardware. It is simply not possible to extract (at least through software means) the keys stored in the secure hardware.

If the device the app is running on has hardware-backed secure storage, then Key material may be bound to the secure hardware (e.g., Trusted Execution Environment (TEE), Secure Element (SE)) of the Android device. When this feature is enabled for a key, its key material is never exposed outside of secure hardware. If the device does not have hardware-backed (OLD Androids) secure storage, then: Key material never enters the application process. When an application performs cryptographic operations using an Android Keystore key, behind the scenes plaintext, ciphertext, and messages to be signed or verified are fed to a system process which carries out the cryptographic operations.

cryptore-android-keystore's People

Contributors

kazakago avatar marcinguy avatar popin-peter 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.