You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
package com.fanruan.api.util;
|
|
|
|
|
|
|
|
import com.fr.stable.CodeUtils;
|
|
|
|
import com.fr.stable.CommonCodeUtils;
|
|
|
|
|
|
|
|
public class CodeKit {
|
|
|
|
/**
|
|
|
|
* 给字符串解密
|
|
|
|
* @param passwordText 待解密的字符串
|
|
|
|
* @return 解密后的字符串
|
|
|
|
*/
|
|
|
|
public static String passwordDecode(String passwordText) {
|
|
|
|
return CodeUtils.passwordDecode(passwordText);
|
|
|
|
}
|
|
|
|
/**
|
|
|
|
* 将普通的java字符串编码成javascript代码
|
|
|
|
* @param string4javascript 待编码的字符串
|
|
|
|
* @return 编码后的代码
|
|
|
|
* */
|
|
|
|
public static String javascriptEncode(String string4javascript) {
|
|
|
|
return CommonCodeUtils.javascriptEncode(string4javascript);
|
|
|
|
}
|
|
|
|
}
|