public static String decrypt(String s) throws GeneralSecurityException {
  if (s.startsWith(__CRYPT))   s=s.substring(__CRYPT.length());
  Cipher cipher=Cipher.getInstance(CRYPT_ALGORITHM);
  cipher.init(Cipher.DECRYPT_MODE,new SecretKeySpec(NON_SECRET_KEY,CRYPT_ALGORITHM));
  return new String(cipher.doFinal(hexStringToByteArray(s)));
}

public static String decrypt ( String s ) throws GeneralSecurityException { if ( s . startsWith ( __CRYPT ) ) s = s . substring ( __CRYPT . length ( ) ) ; Cipher cipher = Cipher . getInstance ( CRYPT_ALGORITHM ) ; cipher . init ( Cipher . DECRYPT_MODE , new SecretKeySpec ( NON_SECRET_KEY , CRYPT_ALGORITHM ) ) ; return new String ( cipher . doFinal ( hexStringToByteArray ( s ) ) ) ; }
decrypts a given string .
