|
|
@ -1,5 +1,5 @@ |
|
|
import { parseTime } from './ruoyi' |
|
|
import { parseTime } from './ruoyi' |
|
|
|
|
|
|
|
|
|
|
|
import { encrypt,decrypt } from '@/utils/encryptUtil' |
|
|
/** |
|
|
/** |
|
|
* 表格时间格式化 |
|
|
* 表格时间格式化 |
|
|
*/ |
|
|
*/ |
|
|
@ -390,11 +390,11 @@ export function isNumberStr(str) { |
|
|
|
|
|
|
|
|
// 编码
|
|
|
// 编码
|
|
|
export function caesarCipher(str) { |
|
|
export function caesarCipher(str) { |
|
|
return btoa(btoa(str)) |
|
|
|
|
|
|
|
|
return btoa(encrypt(str)) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// 解码
|
|
|
// 解码
|
|
|
export function caesarDecipher(str) { |
|
|
export function caesarDecipher(str) { |
|
|
return atob(atob(str)); |
|
|
|
|
|
|
|
|
return decrypt(atob(str)); |
|
|
} |
|
|
} |
|
|
|
|
|
|