cn.gtmap.estateplat.utils
类 Codecs

java.lang.Object
  继承者 cn.gtmap.estateplat.utils.Codecs

public final class Codecs
extends Object

.

版本:
V1.0, 12-8-17
作者:
yangxin

构造方法摘要
Codecs()
           
 
方法摘要
static byte[] bytes(String s)
           
static byte[] decode(String str)
           
static String encode(byte[] bytes)
           
static String encode(int i)
           
static String encode(long l)
           
static byte[] hash(byte[] bytes)
           
static String hash(String str)
           
static String hash(String str, int len)
           
static String md5Hex(byte[] bytes)
           
static String md5Hex(String str)
           
static String sha1Hex(byte[] bytes)
           
static String sha1Hex(String str)
           
static String string(byte[] bytes)
           
static String uuid()
           
static String uuid(int len)
           
static byte[] xor(byte[] bytes, byte[] keyBytes)
           
static String xorDecode(String str, String key)
           
static String xorEncode(String str, String key)
           
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

Codecs

public Codecs()
方法详细信息

hash

public static byte[] hash(byte[] bytes)

hash

public static String hash(String str)

hash

public static String hash(String str,
                          int len)

md5Hex

public static String md5Hex(byte[] bytes)

md5Hex

public static String md5Hex(String str)

sha1Hex

public static String sha1Hex(byte[] bytes)

sha1Hex

public static String sha1Hex(String str)

encode

public static String encode(byte[] bytes)

encode

public static String encode(long l)

encode

public static String encode(int i)

decode

public static byte[] decode(String str)

xor

public static byte[] xor(byte[] bytes,
                         byte[] keyBytes)

xorEncode

public static String xorEncode(String str,
                               String key)

xorDecode

public static String xorDecode(String str,
                               String key)

uuid

public static String uuid()

uuid

public static String uuid(int len)

bytes

public static byte[] bytes(String s)

string

public static String string(byte[] bytes)


Copyright © 2015–2016 cn.gtmap. All rights reserved.