Commit 02424696 authored by Medicean's avatar Medicean

(Enhance:Core) 数据分割字符随机化增强(随机长度 5~12 位)

parent 6d71ec78
......@@ -4,6 +4,10 @@
## `v(2.1.6)`
### 核心模块
* 数据分割字符随机化增强(随机内容,随机长度 5~12 位)
### 其它
* `jsp_custom_script_for_mysql` 提供 `AES` 编码解码示例
......
......@@ -65,11 +65,11 @@ class ASP extends Base {
let tag_s = Math
.random()
.toString(16)
.substr(2, 5); // '->|';
.substr(2, parseInt(Math.random() * 8 + 5)); // '->|';
let tag_e = Math
.random()
.toString(16)
.substr(2, 5); // '|<-';
.substr(2, parseInt(Math.random() * 8 + 5)); // '|<-';
// let formatter = new this.format(this.__opts__['encode']);
let formatter = Base
......
......@@ -67,11 +67,11 @@ class ASPX extends Base {
let tag_s = Math
.random()
.toString(16)
.substr(2, 5); // '->|';
.substr(2, parseInt(Math.random() * 8 + 5)); // '->|';
let tag_e = Math
.random()
.toString(16)
.substr(2, 5); // '|<-';
.substr(2, parseInt(Math.random() * 8 + 5)); // '|<-';
// let formatter = new this.format(this.__opts__['encode']);
let formatter = Base
......
......@@ -66,11 +66,11 @@ class PHP extends Base {
let tag_s = Math
.random()
.toString(16)
.substr(2, 5); // "->|";
.substr(2, parseInt(Math.random() * 8 + 5)); // "->|";
let tag_e = Math
.random()
.toString(16)
.substr(2, 5); // "|<-";
.substr(2, parseInt(Math.random() * 8 + 5)); // "|<-";
let asencCode;
if (!force_default) {
asencCode = this.__decoder__[this.__opts__['decoder'] || 'default'].asoutput();
......
......@@ -18,11 +18,11 @@ class PHP4 extends PHP {
let tag_s = Math
.random()
.toString(16)
.substr(2, 5); // "->|";
.substr(2, parseInt(Math.random() * 8 + 5)); // "->|";
let tag_e = Math
.random()
.toString(16)
.substr(2, 5); // "|<-";
.substr(2, parseInt(Math.random() * 8 + 5)); // "|<-";
let asencCode;
if (!force_default) {
asencCode = this.__decoder__[this.__opts__['decoder'] || 'default'].asoutput();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment