public static String asciiToHexString(final String asciiString) {
    final StringBuffer sb = new StringBuffer();

    for (final byte b : asciiString.getBytes()) {
      sb.append(byteToHexString(b));
    }

    return sb.toString();
  }
Converts an ASCII string into a hex string.

<p>Example: AAA => 414141

@param asciiString The ASCII string to convert.
@return The converted hex string.
java/zylib/src/main/java/com/google/security/zynamics/zylib/general/Convert.java