nl.gx.webmanager.handler.util
Class Crypt

java.lang.Object
  extended by nl.gx.webmanager.handler.util.Crypt

public final class Crypt
extends java.lang.Object

Various utility methods for encryption.


Method Summary
static java.lang.String bytesToHex(byte[] array)
          Converts a byte array to a hex string.
static java.lang.String crypt(java.lang.String password)
           
static byte[] hexToBytes(java.lang.String s)
          Convert a hex string to a byte array.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

bytesToHex

public static java.lang.String bytesToHex(byte[] array)
Converts a byte array to a hex string.

Parameters:
array - Byte array
Returns:
String Concatenation of the hex values of the byte array.

hexToBytes

public static byte[] hexToBytes(java.lang.String s)
Convert a hex string to a byte array. Permits upper or lower case hex.

Parameters:
s - String must have even number of characters. and be formed only of digits 0-9 A-F or a-f. No spaces, minus or plus signs.
Returns:
corresponding byte array.

crypt

public static java.lang.String crypt(java.lang.String password)


Copyright © 2007-2011 GX Software BV. All Rights Reserved.