cn.gtmap.estateplat.utils
类 DESUtils
java.lang.Object
cn.gtmap.estateplat.utils.DESUtils
public final class DESUtils
- extends Object
.
- 版本:
- 1.0 2017/3/6
| 从类 java.lang.Object 继承的方法 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DESUtils
public DESUtils()
encrypt
public static final String encrypt(String data,
String passwordKey)
throws Exception
- 对数据进行DES加密.
- 参数:
data - 待进行DES加密的数据
- 返回:
- 返回经过DES加密后的数据
- 抛出:
Exception
decrypt
public static final String decrypt(String data,
String passwordKey)
throws Exception
- 对用DES加密过的数据进行解密.
- 参数:
data - DES加密数据
- 返回:
- 返回解密后的数据
- 抛出:
Exception
Copyright © 2015–2021 cn.gtmap. All rights reserved.