UNPKG

ts-buildkit

Version:

Typescript Build Kit, this is generic build kit package created by Ahsan Mahmood (https://aoneahsan.com), this package is generic and contains code which will work both on frontend (ReactJs/typescript/etc) as well as on backend (nodejs/typescript/etc). pl

8 lines (6 loc) 469 B
declare const encryptData: (val: unknown) => string | null; declare const decryptData: <T>(val: string) => T | null; declare const encryptWithSecretKey: (data: unknown, secretKey: string) => string; declare const decryptWithSecretKey: <T = any>(encryptedData: string, secretKey: string) => T; declare const aesDecrypt: <T = any>(data: string, secretKey: string) => T | null; export { aesDecrypt, decryptData, decryptWithSecretKey, encryptData, encryptWithSecretKey };