0.1.1 • Published 2 years ago
capacitor-plugin-ecies v0.1.1
capacitor-plugin-ecies
Ecies Encryption
Install
npm install capacitor-plugin-ecies
npx cap sync
API
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; }>