Android Secure data with cryptography


# Create public and private key with keyStore.

# Get KeyPairGenerator instance by providing algo and provider (algo: RSA, provider: AndroidKeyStore)

# Create AlgorithmParameterSpec and initialize to KeyPairGenerator instance.

# Generate Key Pairs , kpGenerator.generateKeyPair();


Signs the data using the key pair stored in the Android Key Store.

# Get KeyStore instance with provider (AndroidKeyStore)

Load the key pair from the Android Key Store using alias

# Get Signature and init with private key.

Sign the data, store the result as a Base64 encoded String.


Comments

Popular posts from this blog

Working with Android Hierarchy Viewer

RecyclerView item animation

change svg android drawable color