capacitor-plugin-ecies
v0.1.1
Published
Ecies Encryption
Readme
capacitor-plugin-ecies
Ecies Encryption
Install
npm install capacitor-plugin-ecies
npx cap syncAPI
generateKeys()
generateKeys() => Promise<{ publicKey: string; privateKey: string; }>Returns: Promise<{ publicKey: string; privateKey: string; }>
encrypt(...)
encrypt(options: { publickey: string; plaintext: string; }) => Promise<{ value: string; }>| Param | Type |
| ------------- | ------------------------------------------------------ |
| options | { publickey: string; plaintext: string; } |
Returns: Promise<{ value: string; }>
decrypt(...)
decrypt(options: { privatekey: string; crypttext: string; }) => Promise<{ value: string; }>| Param | Type |
| ------------- | ------------------------------------------------------- |
| options | { privatekey: string; crypttext: string; } |
Returns: Promise<{ value: string; }>
