(plainDataObj: ICredentialDataDecrypted)
| 1595 | * @returns {Promise<string>} |
| 1596 | */ |
| 1597 | export const encryptCredentialData = async (plainDataObj: ICredentialDataDecrypted): Promise<string> => { |
| 1598 | const encryptKey = await getEncryptionKey() |
| 1599 | return AES.encrypt(JSON.stringify(plainDataObj), encryptKey).toString() |
| 1600 | } |
| 1601 | |
| 1602 | /** |
| 1603 | * Decrypt credential data |
no test coverage detected