mirror of
https://github.com/jumpserver/jumpserver.git
synced 2026-05-05 12:32:28 +00:00
perf: update encrypted
This commit is contained in:
@@ -441,12 +441,9 @@
|
||||
|
||||
</body>
|
||||
{% include '_foot_js.html' %}
|
||||
<script type="text/javascript" src="/static/js/plugins/jsencrypt/jsencrypt.3.3.2.min.js"></script>
|
||||
<script type="text/javascript" src="/static/js/plugins/cryptojs/crypto-js.min.js"></script>
|
||||
|
||||
<script type="text/javascript" src="/static/js/crypto.bundle.js"></script>
|
||||
<script type="text/javascript" src="/static/js/session-encrypt.js"></script>
|
||||
<script type="text/javascript" src="/static/js/plugins/sm-crypto/sm2.min.js"></script>
|
||||
<script type="text/javascript" src="/static/js/plugins/sm-crypto/sm4.min.js"></script>
|
||||
<script type="text/javascript" src="/static/js/plugins/buffer/buffer.min.js"></script>
|
||||
|
||||
<script>
|
||||
function doLogin(evt) {
|
||||
|
||||
275
apps/static/js/crypto.bundle.js
Normal file
275
apps/static/js/crypto.bundle.js
Normal file
File diff suppressed because one or more lines are too long
@@ -1,14 +1,14 @@
|
||||
function fillKey(key, keyLength) {
|
||||
let KeyLength = keyLength || 16
|
||||
if (key.length > KeyLength) {
|
||||
key = key.slice(0, KeyLength)
|
||||
function fillKey(key) {
|
||||
const keyLength = 16
|
||||
if (key.length > keyLength) {
|
||||
key = key.slice(0, keyLength)
|
||||
}
|
||||
const filledKey = Buffer.alloc(KeyLength)
|
||||
const filledKey = Buffer.alloc(keyLength)
|
||||
const keys = Buffer.from(key)
|
||||
for (let i = 0; i < keys.length; i++) {
|
||||
filledKey[i] = keys[i]
|
||||
}
|
||||
return filledKey.toString('hex')
|
||||
return filledKey
|
||||
}
|
||||
|
||||
function aesEncrypt(text, originKey) {
|
||||
|
||||
Reference in New Issue
Block a user