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