Only need the aes, in crypto-js to ask how to use it?

Address of

crypto-js: https://github.com/brix/crypt.

I used to use the whole package to encrypt it. The code is as follows

import CryptoJS from "crypto-js/aes.js";

//
//...

I read the aes.js source code and did not understand this module loading mechanism.

how should I use it correctly?

Jan.13,2022

< H2 > README? < / H2 >

clipboard.png


has been solved. If you need to call other js, for a separate import, you can download the independent aes package on official website , find the 3.x package, decompress it, find aes.js from rollups, and you can use it normally.

Menu