UNPKG

hscrypt

Version:

Encrypt Javascript bundles (at build time), inject+decrypt them into pages later (in the browser)

4 lines (3 loc) 218 B
import CryptoJS from "crypto-js"; export declare function toUint8Array(wordArray: CryptoJS.lib.WordArray): Uint8Array; export declare function convertUint8ArrayToWordArray(u8Array: Uint8Array): CryptoJS.lib.WordArray;