mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-13 07:16:43 +08:00
加密方法升级md5改成 sha256,局部安装及使用
This commit is contained in:
@@ -3,8 +3,8 @@
|
|||||||
* @Date create in 2021/03/16
|
* @Date create in 2021/03/16
|
||||||
*/
|
*/
|
||||||
import { JSEncrypt } from 'jsencrypt'
|
import { JSEncrypt } from 'jsencrypt'
|
||||||
|
import { sha256 } from 'js-sha256'
|
||||||
let CryptoJS = require('crypto-js')
|
let CryptoJS = require('crypto-js')
|
||||||
let sha256 = require('js-sha256')
|
|
||||||
//生成随机字符串,默认24位
|
//生成随机字符串,默认24位
|
||||||
export function randomString(len) {
|
export function randomString(len) {
|
||||||
len = len || 24
|
len = len || 24
|
||||||
|
|||||||
Reference in New Issue
Block a user