CryptoUtils

Inheritance: java.lang.Object

public class CryptoUtils

Constructors

ConstructorDescription
CryptoUtils()

Methods

MethodDescription
desDecrypt(byte[] data, byte[] key, byte[] iv)
desEncrypt(byte[] data, byte[] key, byte[] iv)
equals(Object arg0)
getClass()
hashCode()
notify()
notifyAll()
sha1(String str)
toString()
wait()
wait(long arg0)
wait(long arg0, int arg1)

CryptoUtils()

public CryptoUtils()

desDecrypt(byte[] data, byte[] key, byte[] iv)

public static byte[] desDecrypt(byte[] data, byte[] key, byte[] iv)

Parameters:

ParameterTypeDescription
databyte[]
keybyte[]
ivbyte[]

Returns: byte[]

desEncrypt(byte[] data, byte[] key, byte[] iv)

public static byte[] desEncrypt(byte[] data, byte[] key, byte[] iv)

Parameters:

ParameterTypeDescription
databyte[]
keybyte[]
ivbyte[]

Returns: byte[]

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

ParameterTypeDescription
arg0java.lang.Object

Returns: boolean

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

hashCode()

public native int hashCode()

Returns: int

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

sha1(String str)

public static byte[] sha1(String str)

Parameters:

ParameterTypeDescription
strjava.lang.String

Returns: byte[]

toString()

public String toString()

Returns: java.lang.String

wait()

public final void wait()

wait(long arg0)

public final void wait(long arg0)

Parameters:

ParameterTypeDescription
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

ParameterTypeDescription
arg0long
arg1int