decrypt
Decrypt data with Dashboard encryption api.
How to use
import { Plugin } from '@root'
Plugin.decrypt({
...DECRYPT_PARAMS
}).then(data).catch(error)Decrypt params
Examples
Decrypt data
import { Plugin } from '@root'
const encryptedData = "elkrjkelwrj#RJGSDG=!fDSFJFSDjfsdihjge==!!DFEhg"
Plugin.decrypt({
payload: encryptedData,
password: 'my-super-secret-password'
}).then(decryptedData => {
console.log(decryptedData)
}).catch(error => {
console.error(error)
})Last updated