![](https://img-blog.csdnimg.cn/20201014180756757.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
java
hilinw126
这个作者很懒,什么都没留下…
展开
-
MD5和一个可逆加密算法相接合的加密和解密程序
MD5和一个可逆加密算法相接合的加密和解密程序 比较简单。 [code={0}] import java.security.MessageDigest; /** *先通过MD5加密之后,再来一次可逆的加密。 *顺序可以调整,可以选择先用可逆加密,然后再用MD5加密 */ public class MD5andKL{ //MD5加码。32位 public st...2011-03-04 16:25:53 · 95 阅读 · 0 评论 -
根据文件名取文件【含相对路径和绝对路径处理】
/** * 根据文件名取文件【含相对路径和绝对路径处理】 * @param inputfile * @return */ public static File getFileByFileName(String inputfile){ File inFile = null; String separa...2011-03-04 16:27:54 · 248 阅读 · 0 评论 -
字符串转化 nicode utf8 转化汉字
/** * 字符串转化为unicode * @param gbString * @return */ public static String encodeUnicode(final String gbString) { char[] utfBytes = gbString.toCharArray(); ...2011-03-04 16:28:52 · 214 阅读 · 0 评论 -
获取GMT8时间
/** * Description: 获取GMT8时间 * @return 将当前时间转换为GMT8时区后的Date */ public static Date getGMT8Time(){ Date gmt8 = null; try { Calendar cal = Calenda...原创 2011-03-04 16:29:11 · 218 阅读 · 0 评论 -
人民币转成大写
/** * 人民币转成大写 * * @param value * @return String */ public static String hangeToBig(double value) { char[] hunit = { '拾', '佰', '仟' }; // 段内位置表示 ...2011-03-04 16:39:50 · 167 阅读 · 0 评论