Index: ssts-web/src/main/webapp/js/rsa/rsaEncryptSample.jsp =================================================================== diff -u --- ssts-web/src/main/webapp/js/rsa/rsaEncryptSample.jsp (revision 0) +++ ssts-web/src/main/webapp/js/rsa/rsaEncryptSample.jsp (revision 35057) @@ -0,0 +1,19 @@ +<%@ page contentType="text/html; charset=UTF-8" %> +<%@ include file="rsaEncryptCommon.jsp" %> + + +原文: Index: ssts-web/src/main/webapp/disinfectsystem/basedatamanager/deviceInterface/deviceInterfaceView.js =================================================================== diff -u -r35056 -r35057 --- ssts-web/src/main/webapp/disinfectsystem/basedatamanager/deviceInterface/deviceInterfaceView.js (.../deviceInterfaceView.js) (revision 35056) +++ ssts-web/src/main/webapp/disinfectsystem/basedatamanager/deviceInterface/deviceInterfaceView.js (.../deviceInterfaceView.js) (revision 35057) @@ -75,6 +75,12 @@ loadFormData(grid); } +/** + * 对用户名进行rsa解密 + * @param v 用户名(userName)的rsa密文 + * @param data 行数据对象 + * @returns + */ function decrptyUserName(v,data){ return dencryptText(v); } Index: ssts-web/src/main/webapp/js/rsa/rsaEncryptCommon.jsp =================================================================== diff -u --- ssts-web/src/main/webapp/js/rsa/rsaEncryptCommon.jsp (revision 0) +++ ssts-web/src/main/webapp/js/rsa/rsaEncryptCommon.jsp (revision 35057) @@ -0,0 +1,38 @@ +<%@ page contentType="text/html; charset=UTF-8" %> +<%@page import="com.forgon.tools.crypto.rsa.RSAEncrypt"%> +<%@page import="org.apache.commons.lang.StringUtils"%> +<%@ include file="../../common/taglibs.jsp" %> + +<% + +//登录密码的rsa公钥 +String logonRSAPublicKey = (String)application.getAttribute("logonRSAPublicKey"); +if(StringUtils.isBlank(logonRSAPublicKey)){ + logonRSAPublicKey = RSAEncrypt.ENCRYPTPUBLICKEY; +} +//登录密码的rsa私钥 +String logonRSAPrivateKey = (String)application.getAttribute("logonRSAPrivateKey"); +if(StringUtils.isBlank(logonRSAPrivateKey)){ + logonRSAPrivateKey = RSAEncrypt.DECRYPTPRIVATEKEY; +} + +%> + + + \ No newline at end of file