Browse Source

fix args view

master
独行之狼 4 years ago
parent
commit
08058ca575
  1. BIN
      fr-plugin-DataEncryptor-1.0/fr-plugin-DataEncryptor-1.0.jar
  2. 8
      fr-plugin-DataEncryptor-1.0/plugin.xml
  3. BIN
      install/fr-plugin-DataEncryptor-1.0.zip
  4. 8
      plugin.xml
  5. 6
      src/com/fr/plugin/baidu/encrypt/EncryptDataAccessBridge.java
  6. 2
      src/com/fr/plugin/baidu/encrypt/FRDEncryptWithMD5AndDES.java
  7. 2
      src/com/fr/plugin/baidu/encrypt/FRDEncryptWithMD5AndTripleDES.java
  8. 2
      src/com/fr/plugin/baidu/encrypt/FREncryptWithMD5AndDES.java
  9. 2
      src/com/fr/plugin/baidu/encrypt/FREncryptWithMD5AndTripleDES.java
  10. 24
      src/com/fr/plugin/baidu/encrypt/FREncryptorFunction.java
  11. 6
      src/com/fr/plugin/baidu/encrypt/FRGetDataFromHash.java
  12. 2
      src/com/fr/plugin/baidu/encrypt/FRHashData.java
  13. 6
      src/com/fr/plugin/baidu/encrypt/FunConstants.java
  14. 2
      src/com/fr/plugin/baidu/encrypt/FunLocaleFinder.java
  15. 2
      src/com/fr/plugin/baidu/encrypt/TestFun.java
  16. 4
      src/com/fr/plugin/baidu/encrypt/dao/EncryptDataDao.java
  17. 4
      src/com/fr/plugin/baidu/encrypt/entity/EncryptDataEntity.java
  18. 0
      src/com/fr/plugin/baidu/encrypt/local/dataEncrypt.properties
  19. 0
      src/com/fr/plugin/baidu/encrypt/local/dataEncrypt_zh_CN.properties
  20. 0
      src/com/fr/plugin/baidu/encrypt/resources/menuIcon.png
  21. 24
      src/com/fr/plugin/data/encrypt/FREncryptorFunction.java

BIN
fr-plugin-DataEncryptor-1.0/fr-plugin-DataEncryptor-1.0.jar

Binary file not shown.

8
fr-plugin-DataEncryptor-1.0/plugin.xml

@ -11,9 +11,9 @@
[2021-3-6]初始化插件。<br/> [2021-3-6]初始化插件。<br/>
]]></change-notes> ]]></change-notes>
<extra-core> <extra-core>
<LocaleFinder class="com.fr.plugin.data.encrypt.FunLocaleFinder"/> <LocaleFinder class="com.fr.plugin.baidu.encrypt.FunLocaleFinder"/>
<FunctionGroup class="com.fr.plugin.data.encrypt.FREncryptorFunction"/> <FunctionGroup class="com.fr.plugin.baidu.encrypt.FREncryptorFunction"/>
<DBAccessProvider class="com.fr.plugin.data.encrypt.EncryptDataAccessBridge"/> <DBAccessProvider class="com.fr.plugin.baidu.encrypt.EncryptDataAccessBridge"/>
</extra-core> </extra-core>
<function-recorder class="com.fr.plugin.data.encrypt.FREncryptorFunction"/> <function-recorder class="com.fr.plugin.baidu.encrypt.FREncryptorFunction"/>
</plugin> </plugin>

BIN
install/fr-plugin-DataEncryptor-1.0.zip

Binary file not shown.

8
plugin.xml

@ -11,9 +11,9 @@
[2021-3-6]初始化插件。<br/> [2021-3-6]初始化插件。<br/>
]]></change-notes> ]]></change-notes>
<extra-core> <extra-core>
<LocaleFinder class="com.fr.plugin.data.encrypt.FunLocaleFinder"/> <LocaleFinder class="com.fr.plugin.baidu.encrypt.FunLocaleFinder"/>
<FunctionGroup class="com.fr.plugin.data.encrypt.FREncryptorFunction"/> <FunctionGroup class="com.fr.plugin.baidu.encrypt.FREncryptorFunction"/>
<DBAccessProvider class="com.fr.plugin.data.encrypt.EncryptDataAccessBridge"/> <DBAccessProvider class="com.fr.plugin.baidu.encrypt.EncryptDataAccessBridge"/>
</extra-core> </extra-core>
<function-recorder class="com.fr.plugin.data.encrypt.FREncryptorFunction"/> <function-recorder class="com.fr.plugin.baidu.encrypt.FREncryptorFunction"/>
</plugin> </plugin>

6
src/com/fr/plugin/data/encrypt/EncryptDataAccessBridge.java → src/com/fr/plugin/baidu/encrypt/EncryptDataAccessBridge.java

@ -1,10 +1,10 @@
package com.fr.plugin.data.encrypt; package com.fr.plugin.baidu.encrypt;
import com.fr.db.fun.impl.AbstractDBAccessProvider; import com.fr.db.fun.impl.AbstractDBAccessProvider;
import com.fr.intelli.record.Focus; import com.fr.intelli.record.Focus;
import com.fr.intelli.record.Original; import com.fr.intelli.record.Original;
import com.fr.plugin.data.encrypt.dao.EncryptDataDao; import com.fr.plugin.baidu.encrypt.dao.EncryptDataDao;
import com.fr.plugin.data.encrypt.entity.EncryptDataEntity; import com.fr.plugin.baidu.encrypt.entity.EncryptDataEntity;
import com.fr.record.analyzer.EnableMetrics; import com.fr.record.analyzer.EnableMetrics;
import com.fr.stable.db.accessor.DBAccessor; import com.fr.stable.db.accessor.DBAccessor;
import com.fr.stable.db.dao.BaseDAO; import com.fr.stable.db.dao.BaseDAO;

2
src/com/fr/plugin/data/encrypt/FRDEncryptWithMD5AndDES.java → src/com/fr/plugin/baidu/encrypt/FRDEncryptWithMD5AndDES.java

@ -1,4 +1,4 @@
package com.fr.plugin.data.encrypt; package com.fr.plugin.baidu.encrypt;
import com.fr.intelli.record.Focus; import com.fr.intelli.record.Focus;
import com.fr.intelli.record.Original; import com.fr.intelli.record.Original;

2
src/com/fr/plugin/data/encrypt/FRDEncryptWithMD5AndTripleDES.java → src/com/fr/plugin/baidu/encrypt/FRDEncryptWithMD5AndTripleDES.java

@ -1,4 +1,4 @@
package com.fr.plugin.data.encrypt; package com.fr.plugin.baidu.encrypt;
import com.fr.intelli.record.Focus; import com.fr.intelli.record.Focus;
import com.fr.intelli.record.Original; import com.fr.intelli.record.Original;

2
src/com/fr/plugin/data/encrypt/FREncryptWithMD5AndDES.java → src/com/fr/plugin/baidu/encrypt/FREncryptWithMD5AndDES.java

@ -1,4 +1,4 @@
package com.fr.plugin.data.encrypt; package com.fr.plugin.baidu.encrypt;
import com.fr.intelli.record.Focus; import com.fr.intelli.record.Focus;
import com.fr.intelli.record.Original; import com.fr.intelli.record.Original;

2
src/com/fr/plugin/data/encrypt/FREncryptWithMD5AndTripleDES.java → src/com/fr/plugin/baidu/encrypt/FREncryptWithMD5AndTripleDES.java

@ -1,4 +1,4 @@
package com.fr.plugin.data.encrypt; package com.fr.plugin.baidu.encrypt;
import com.fr.intelli.record.Focus; import com.fr.intelli.record.Focus;
import com.fr.intelli.record.Original; import com.fr.intelli.record.Original;

24
src/com/fr/plugin/baidu/encrypt/FREncryptorFunction.java

@ -0,0 +1,24 @@
package com.fr.plugin.baidu.encrypt;
import com.fr.stable.fun.impl.AbstractFunctionDefContainer;
import com.fr.stable.script.FunctionDef;
public class FREncryptorFunction extends AbstractFunctionDefContainer {
@Override
public FunctionDef[] getFunctionDefs() {
return new FunctionDef[]{
new FunctionDef("FRHashData", "FRHashData(varchar1,varchar2,logical3):生成数据散列码。\n参数说明:\nvarchar1:源数据文本或单元格,如“中国”,A1。\nvarchar2:散列类型,md5或sha。\nlogical3:是否存储数据,true或false,如果存储数据,可以用FRGetDataFromHash函数通过散列值获取数据。\n示例:FRHashData(\"asddfds\",\"SHA\",true)", FRHashData.class.getName()),
new FunctionDef("FRGetDataFromHash", "FRGetDataFromHash(varchar1):数据散列码获得数据,如果数据被非法篡改,则返回错误信息。\n参数说明:\nvarchar1:数据散列码文本。\n示例:FRGetDataFromHash(\"dhstkd7v4q7s7qnes5rar4mjp\")", FRGetDataFromHash.class.getName()),
new FunctionDef("FREncryptWithMD5AndDES", "FREncryptWithMD5AndDES(varchar1,varchar2):用MD5AndDES算法加密数据。\n参数说明:\nvarchar1:加密密钥。\nvarchar2:加密数据。\n示例:FREncryptWithMD5AndDES(\"abc\",b1)", FREncryptWithMD5AndDES.class.getName()),
new FunctionDef("FREncryptWithMD5AndTripleDES", "FREncryptWithMD5AndTripleDES(varchar1,varchar2):用MD5AndTripleDES算法加密数据。\n参数说明:\nvarchar1:加密密钥。\nvarchar2:加密数据。\n示例:FREncryptWithMD5AndTripleDES(\"abc\",b1)", FREncryptWithMD5AndTripleDES.class.getName()),
new FunctionDef("FRDEncryptWithMD5AndDES", "FRDEncryptWithMD5AndDES(varchar1,varchar2):用MD5AndDES算法解密密数据。\n参数说明:\nvarchar1:解密密钥。\nvarchar2:解密数据。\n示例:FRDEncryptWithMD5AndDES(\"abc\",\"wiAHHlV0laFpYi2YoXLUxE+LD8noomQ0TXOTZbYECQA=\")", FRDEncryptWithMD5AndDES.class.getName()),
new FunctionDef("FRDEncryptWithMD5AndTripleDES", "FRDEncryptWithMD5AndTripleDES(varchar1,varchar2):用MD5AndTripleDES算法解决密数据。\n参数说明:\nvarchar1:解密密钥。\nvarchar2:解密数据。\n示例:FRDEncryptWithMD5AndTripleDES(\"abc\",\"DD5rc+jocBMlhUGwV2cqnfgDDERtX/E2727LIbf2KGs=\")", FRDEncryptWithMD5AndTripleDES.class.getName()),
};
}
@Override
public String getGroupName() {
return "数据加密函数";
}
}

6
src/com/fr/plugin/data/encrypt/FRGetDataFromHash.java → src/com/fr/plugin/baidu/encrypt/FRGetDataFromHash.java

@ -1,11 +1,11 @@
package com.fr.plugin.data.encrypt; package com.fr.plugin.baidu.encrypt;
import com.fanruan.api.query.QueryConditionKit; import com.fanruan.api.query.QueryConditionKit;
import com.fanruan.api.query.RestrictionKit; import com.fanruan.api.query.RestrictionKit;
import com.fr.intelli.record.Focus; import com.fr.intelli.record.Focus;
import com.fr.intelli.record.Original; import com.fr.intelli.record.Original;
import com.fr.plugin.data.encrypt.dao.EncryptDataDao; import com.fr.plugin.baidu.encrypt.dao.EncryptDataDao;
import com.fr.plugin.data.encrypt.entity.EncryptDataEntity; import com.fr.plugin.baidu.encrypt.entity.EncryptDataEntity;
import com.fr.record.analyzer.EnableMetrics; import com.fr.record.analyzer.EnableMetrics;
import com.fr.script.AbstractFunction; import com.fr.script.AbstractFunction;
import com.fr.stable.Primitive; import com.fr.stable.Primitive;

2
src/com/fr/plugin/data/encrypt/FRHashData.java → src/com/fr/plugin/baidu/encrypt/FRHashData.java

@ -1,4 +1,4 @@
package com.fr.plugin.data.encrypt; package com.fr.plugin.baidu.encrypt;
import com.fr.intelli.record.Focus; import com.fr.intelli.record.Focus;
import com.fr.intelli.record.Original; import com.fr.intelli.record.Original;

6
src/com/fr/plugin/data/encrypt/FunConstants.java → src/com/fr/plugin/baidu/encrypt/FunConstants.java

@ -1,10 +1,10 @@
package com.fr.plugin.data.encrypt; package com.fr.plugin.baidu.encrypt;
import com.fr.locale.InterProviderFactory; import com.fr.locale.InterProviderFactory;
import com.fr.log.FineLoggerFactory; import com.fr.log.FineLoggerFactory;
import com.fr.plugin.PluginLicenseManager; import com.fr.plugin.PluginLicenseManager;
import com.fr.plugin.data.encrypt.dao.EncryptDataDao; import com.fr.plugin.baidu.encrypt.dao.EncryptDataDao;
import com.fr.plugin.data.encrypt.entity.EncryptDataEntity; import com.fr.plugin.baidu.encrypt.entity.EncryptDataEntity;
import com.fr.stable.ArrayUtils; import com.fr.stable.ArrayUtils;
import com.fr.stable.Primitive; import com.fr.stable.Primitive;
import com.fr.stable.db.action.DBAction; import com.fr.stable.db.action.DBAction;

2
src/com/fr/plugin/data/encrypt/FunLocaleFinder.java → src/com/fr/plugin/baidu/encrypt/FunLocaleFinder.java

@ -1,4 +1,4 @@
package com.fr.plugin.data.encrypt; package com.fr.plugin.baidu.encrypt;
import com.fr.intelli.record.Focus; import com.fr.intelli.record.Focus;
import com.fr.intelli.record.Original; import com.fr.intelli.record.Original;

2
src/com/fr/plugin/data/encrypt/TestFun.java → src/com/fr/plugin/baidu/encrypt/TestFun.java

@ -1,4 +1,4 @@
package com.fr.plugin.data.encrypt; package com.fr.plugin.baidu.encrypt;
public class TestFun { public class TestFun {
public static void main(String args[]) throws Exception { public static void main(String args[]) throws Exception {

4
src/com/fr/plugin/data/encrypt/dao/EncryptDataDao.java → src/com/fr/plugin/baidu/encrypt/dao/EncryptDataDao.java

@ -1,6 +1,6 @@
package com.fr.plugin.data.encrypt.dao; package com.fr.plugin.baidu.encrypt.dao;
import com.fr.plugin.data.encrypt.entity.EncryptDataEntity; import com.fr.plugin.baidu.encrypt.entity.EncryptDataEntity;
import com.fr.stable.db.dao.BaseDAO; import com.fr.stable.db.dao.BaseDAO;
import com.fr.stable.db.session.DAOSession; import com.fr.stable.db.session.DAOSession;

4
src/com/fr/plugin/data/encrypt/entity/EncryptDataEntity.java → src/com/fr/plugin/baidu/encrypt/entity/EncryptDataEntity.java

@ -1,6 +1,6 @@
package com.fr.plugin.data.encrypt.entity; package com.fr.plugin.baidu.encrypt.entity;
import com.fr.plugin.data.encrypt.FunConstants; import com.fr.plugin.baidu.encrypt.FunConstants;
import com.fr.stable.AssistUtils; import com.fr.stable.AssistUtils;
import com.fr.stable.db.entity.BaseEntity; import com.fr.stable.db.entity.BaseEntity;
import com.fr.third.javax.persistence.Column; import com.fr.third.javax.persistence.Column;

0
src/com/fr/plugin/data/encrypt/local/dataEncrypt.properties → src/com/fr/plugin/baidu/encrypt/local/dataEncrypt.properties

0
src/com/fr/plugin/data/encrypt/local/dataEncrypt_zh_CN.properties → src/com/fr/plugin/baidu/encrypt/local/dataEncrypt_zh_CN.properties

0
src/com/fr/plugin/data/encrypt/resources/menuIcon.png → src/com/fr/plugin/baidu/encrypt/resources/menuIcon.png

Before

Width:  |  Height:  |  Size: 749 B

After

Width:  |  Height:  |  Size: 749 B

24
src/com/fr/plugin/data/encrypt/FREncryptorFunction.java

@ -1,24 +0,0 @@
package com.fr.plugin.data.encrypt;
import com.fr.stable.fun.impl.AbstractFunctionDefContainer;
import com.fr.stable.script.FunctionDef;
public class FREncryptorFunction extends AbstractFunctionDefContainer {
@Override
public FunctionDef[] getFunctionDefs() {
return new FunctionDef[]{
new FunctionDef("FRHashData", "功能:生成数据散列码。\n参数说明:\n参数1:源数据文本或单元格,如“中国”,A1。\n参数2:散列类型,md5或sha。\n参数3:是否存储数据,true或false,如果存储数据,可以用FRGetDataFromHash函数通过散列值获取数据", FRHashData.class.getName()),
new FunctionDef("FRGetDataFromHash", "功能:数据散列码获得数据,如果数据被非法篡改,则返回错误信息。\n参数说明:\n参数1:数据散列码文本", FRGetDataFromHash.class.getName()),
new FunctionDef("FREncryptWithMD5AndDES", "功能:用MD5AndDES算法加密数据。\n参数说明:\n参数1:加密密钥。\n参数2:加密数据。", FREncryptWithMD5AndDES.class.getName()),
new FunctionDef("FREncryptWithMD5AndTripleDES", "功能:用MD5AndTripleDES算法加密数据。\n参数说明:\n参数1:加密密钥。\n参数2:加密数据。", FREncryptWithMD5AndTripleDES.class.getName()),
new FunctionDef("FRDEncryptWithMD5AndDES", "功能:用MD5AndDES算法解密密数据。\n参数说明:\n参数1:解密密钥。\n参数2:解密数据。", FRDEncryptWithMD5AndDES.class.getName()),
new FunctionDef("FRDEncryptWithMD5AndTripleDES", "功能:用MD5AndTripleDES算法解决密数据。\n参数说明:\n参数1:解密密钥。\n参数2:解密数据。", FRDEncryptWithMD5AndTripleDES.class.getName()),
};
}
@Override
public String getGroupName() {
return "数据加密函数";
}
}
Loading…
Cancel
Save