Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
code-mix
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
劳工
code-mix
Commits
a40b54f9
Commit
a40b54f9
authored
Sep 17, 2020
by
rockyl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加混淆打包
parent
8a856689
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
index.min.js
dist/index.min.js
+1
-0
No files found.
dist/index.min.js
0 → 100644
View file @
a40b54f9
"use strict"
;
function
makeRandom
(
e
){
return
function
(
r
){
return
Math
.
ceil
((
e
=
(
9301
*
e
+
49297
)
%
233280
)
/
233280
*
r
)}}
function
makeInt
(
r
){
var
e
=
1
<
arguments
.
length
&&
void
0
!==
arguments
[
1
]?
arguments
[
1
]:
0
;
return
Math
.
floor
(
Math
.
random
()
*
(
r
-
e
))
+
e
}
Object
.
defineProperty
(
exports
,
"__esModule"
,{
value
:
!
0
});
var
allChars
=
"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789="
,
total
=
allChars
.
length
;
function
randomChar
(){
return
allChars
.
charAt
(
makeInt
(
total
))}
function
encode
(
r
){
for
(
var
e
=
makeInt
(
143
),
t
=
makeRandom
(
e
),
a
=
String
.
fromCharCode
(
e
),
n
=
0
,
o
=
r
.
length
;;){
var
d
=
t
(
5
);
if
(
a
+=
r
.
substr
(
n
,
d
),
o
<=
(
n
+=
d
))
break
;
a
+=
randomChar
()}
return
a
}
function
decode
(
r
){
for
(
var
e
=
makeRandom
(
r
.
charCodeAt
(
0
)),
t
=
r
.
substr
(
1
),
a
=
""
,
n
=
t
.
length
,
o
=
0
;;){
var
d
=
e
(
5
);
if
(
a
+=
t
.
substr
(
o
,
d
),
n
<=
(
o
+=
d
+
1
))
break
}
return
a
}
exports
.
decode
=
decode
,
exports
.
encode
=
encode
;
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment