crypto-js
1.1、crypto-js简介
是什么 ?:JavaScript library of crypto standards.
开发语言:JavaScript
源码仓库:https://github.com/brix/crypto-js
运行环境:Web浏览器Node.js Runtime
1.2、在前端开发中引入crypto-js
1.2.1、通过开源CDN引入crypto-js

jsDelivr⤵︎

<script src="https://cdn.jsdelivr.net/npm/crypto-js@4.0.0/crypto-js.js"></script>

BootCDN⤵︎

<script src="https://cdn.bootcdn.net/ajax/libs/crypto-js/4.0.0/crypto-js.min.js"></script>
1.2.2、通过下载到本地引入crypto-js

step1、通过包管理器安装crypto-js

包管理器安装命令
bowernpm bower crypto-js --save
npmnpm install crypto-js --save
yarnyarn add crypto-js

step2、在HTML代码中引入JavaScript

<script src="/bower_components/crypto-js/dist/crypto-js.min.js"></script>
1.3、在Node.js中引入crypto-js

step1、通过包管理器安装crypto-js

包管理器安装命令
npmnpm install crypto-js --save
yarnyarn add crypto-js

step2、在Node.js代码中导入axios模块

const crypto = require("crypto-js");
1.4、crypto-js modules
模块算法
crypto-js/md5MD5
crypto-js/ripemd160RIPEMD-160
crypto-js/sha1SHA-1
crypto-js/sha224SHA-224
crypto-js/sha256SHA-256
crypto-js/sha384SHA-384
crypto-js/sha512SHA-512
crypto-js/sha3SHA-3
crypto-js/hmac-md5HMACwithMD5
crypto-js/hmac-ripemd160HMACwithRIPEMD-160
crypto-js/hmac-sha1HMACwithSHA-1
crypto-js/hmac-sha224HMACwithSHA-224
crypto-js/hmac-sha256HMACwithSHA-256
crypto-js/hmac-sha384HMACwithSHA-384
crypto-js/hmac-sha512HMACwithSHA-512
crypto-js/hmac-sha3HMACwithSHA-3
crypto-js/pbkdf2PBKDF2
crypto-js/aesAES
crypto-js/tripledes3DES
crypto-js/rc4RC4
crypto-js/rabbitrabbit
crypto-js/rabbit-legacyrabbit-legacy
crypto-js/evpkdfevpkdf
crypto-js/mode-cfbCFB
crypto-js/mode-ctrCTR
crypto-js/mode-ctr-gladmanCTR-GLADMAN
crypto-js/mode-ofbOFB
crypto-js/mode-ecbECB
crypto-js/pad-pkcs7pad-pkcs7
crypto-js/pad-ansix923pad-ansix923
crypto-js/pad-iso10126pad-iso10126
crypto-js/pad-iso97971pad-iso97971
crypto-js/pad-zeropaddingpad-zeropadding
crypto-js/pad-nopaddingpad-nopadding
crypto-js/format-opensslOpenSSL
crypto-js/format-hexbase16
crypto-js/enc-latin1ISO-8859-1
crypto-js/enc-utf8UTF-8
crypto-js/enc-utf16UTF-16
crypto-js/enc-hexbase16
crypto-js/enc-base64base64