Create PrivateKey/PublicCertificate Pair
1 | public void createNewKeys(View view) { |
Import PrivateKey/PublicCertificate Pair
The private key cannot be encrypted.
The password parameter of setKeyEntry has to be null.
1 | // The key/certificate are the content between BEGIN and END in pem format |
Encrypt
1 | public void encryptString(String alias) { |
Decrypt
1 | public void decryptString(String alias) { |