public static String decodeASCII(final byte[] key,final int off,final int len){
  final byte[] b=new byte[len];
  System.arraycopy(key,off,b,0,len);
  for (int i=0; i < len; i++) {
    b[i]=decodeByte(b[i]);
  }
  try {
    return new String(b,"US-ASCII");
  }
 catch (  UnsupportedEncodingException e) {
    throw new RuntimeException(e);
  }
}

public static String decodeASCII ( final byte [ ] key , final int off , final int len ) { final byte [ ] b = new byte [ len ] ; System . arraycopy ( key , off , b , 0 , len ) ; for ( int i = 0 ; i < len ; i ++ ) { b [ i ] = decodeByte ( b [ i ] ) ; } try { return new String ( b , "US-ASCII" ) ; } catch ( UnsupportedEncodingException e ) { throw new RuntimeException ( e ) ; } }
decodes an ascii string from a key .
