forked from fanruan/finekit
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.
25 lines
694 B
25 lines
694 B
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); |
|
} |
|
|
|
/** |
|
* 将经过处理的中日韩文字符串解码成原先的中日韩文 |
|
* @param text 经过处理的中日韩文字 |
|
* @return 中日韩文字 |
|
* @throws Exception |
|
*/ |
|
public static String cjkDecode(String text) throws Exception { |
|
return CodeUtils.cjkDecode(text); |
|
} |
|
}
|
|
|