独行之狼
4 years ago
21 changed files with 52 additions and 52 deletions
Binary file not shown.
Binary file not shown.
@ -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; |
@ -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; |
@ -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; |
@ -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; |
@ -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; |
@ -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 "数据加密函数"; |
||||||
|
} |
||||||
|
} |
@ -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; |
@ -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; |
@ -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; |
@ -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; |
@ -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 { |
@ -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; |
||||||
|
|
@ -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; |
Before Width: | Height: | Size: 749 B After Width: | Height: | Size: 749 B |
@ -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…
Reference in new issue