org.logicalcobwebs.xxtea
类 XXTEA

java.lang.Object
  继承者 org.logicalcobwebs.xxtea.XXTEA

public final class XXTEA
extends Object


方法摘要
static byte[] decrypt(byte[] data, byte[] key)
          Decrypt data with key.
static int[] decrypt(int[] v, int[] k)
          Decrypt data with key.
static String decrypt(String data, String key)
           
static byte[] encrypt(byte[] data, byte[] key)
          Encrypt data with key.
static int[] encrypt(int[] v, int[] k)
          Encrypt data with key.
static String encrypt(String data, String key)
           
static byte[] getBytes(char[] chars)
           
static char[] getChars(byte[] bytes)
           
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

方法详细信息

getBytes

public static byte[] getBytes(char[] chars)

getChars

public static char[] getChars(byte[] bytes)

encrypt

public static String encrypt(String data,
                             String key)
                      throws UnsupportedEncodingException
抛出:
UnsupportedEncodingException

decrypt

public static String decrypt(String data,
                             String key)
                      throws UnsupportedEncodingException,
                             Exception
抛出:
UnsupportedEncodingException
Exception

encrypt

public static byte[] encrypt(byte[] data,
                             byte[] key)
Encrypt data with key.

参数:
data -
key -

decrypt

public static byte[] decrypt(byte[] data,
                             byte[] key)
Decrypt data with key.

参数:
data -
key -

encrypt

public static int[] encrypt(int[] v,
                            int[] k)
Encrypt data with key.

参数:
v -
k -

decrypt

public static int[] decrypt(int[] v,
                            int[] k)
Decrypt data with key.

参数:
v -
k -


Copyright © 2014. All rights reserved.