Ecies Encryption
npm install capacitor-plugin-eciesEcies Encryption
``bash`
npm install capacitor-plugin-ecies
npx cap sync
* generateKeys()
* encrypt(...)
* decrypt(...)
`typescript`
generateKeys() => Promise<{ publicKey: string; privateKey: string; }>
Returns: Promise<{ publicKey: string; privateKey: string; }>
--------------------
`typescript`
encrypt(options: { publickey: string; plaintext: string; }) => Promise<{ value: string; }>
| Param | Type |
| ------------- | ------------------------------------------------------ |
| options | { publickey: string; plaintext: string; } |
Returns: Promise<{ value: string; }>
--------------------
`typescript`
decrypt(options: { privatekey: string; crypttext: string; }) => Promise<{ value: string; }>
| Param | Type |
| ------------- | ------------------------------------------------------- |
| options` | { privatekey: string; crypttext: string; } |
Returns: Promise<{ value: string; }>
--------------------