UNPKG

noxon

Version:

Better JSON parsing and manipulation in TypeScript.

28 lines (27 loc) 542 B
import { decryptText, encryptText } from "../@helpers/cryptoutils"; import { prohibitedKeysAdvanced, prohibitedKeysBasic } from "../@helpers/prohibitedKeys"; const encrypt = async (plain) => { return await encryptText(plain); }; const decrypt = async ({ encryptedData, iv, key }) => { return await decryptText(encryptedData, iv, key); }; const getPKAdvanced = () => { return prohibitedKeysAdvanced; }; const getPKBasic = () => { return prohibitedKeysBasic; }; export { decrypt, encrypt, getPKAdvanced, getPKBasic };