From 63f094b14a05132c4c224e5c5849d957c5ae915f Mon Sep 17 00:00:00 2001 From: kubasz Date: Tue, 22 Oct 2019 21:36:02 +0200 Subject: [PATCH] [android] Update README with new methods for private keys. --- android/README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/android/README.md b/android/README.md index 80996ff..2a2ae9e 100644 --- a/android/README.md +++ b/android/README.md @@ -20,8 +20,18 @@ dependencies { ```kotlin import io.github.wulkanowy.signer.android.signContent +import io.github.wulkanowy.signer.android.getPrivateKeyFromCert +// sign content using PFX certificate and API password val signed = signContent(password, certificate, content) + +// sign content using private key extracted from PFX +val signed = signContent(key, content) + +// extract private key from PFX +// using a once generated private key is about 250x faster +// than using the PFX each time +val privateKey = getPrivateKeyFromCert(password, certificate) ``` ## Tests