[android] Update README with new methods for private keys.
This commit is contained in:
parent
39c382a259
commit
63f094b14a
1 changed files with 10 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue