protected static String nonceCountToHex(int count){
  String str=Integer.toHexString(count);
  StringBuffer pad=new StringBuffer();
  if (str.length() < 8) {
    for (int i=0; i < 8 - str.length(); i++) {
      pad.append("0");
    }
  }
  return pad.toString() + str;
}

protected static String nonceCountToHex ( int count ) { String str = Integer . toHexString ( count ) ; StringBuffer pad = new StringBuffer ( ) ; if ( str . length ( ) < 8 ) { for ( int i = 0 ; i < 8 - str . length ( ) ; i ++ ) { pad . append ( "0" ) ; } } return pad . toString ( ) + str ; }
takes ' noncecount ' value and returns hex value of the value .
