examples/iot-nirvana/app-engine/src/main/java/com/google/cloud/demo/iot/nirvana/frontend/shared/Utils.java
/**
   * Compute MD5 of input value
   *
   * @param inputValue the value for which you want to compute MD5 hash
   * @return MD5 hash of the input string
   */
Compute MD5 of input value
@param inputValue the value for which you want to compute MD5 hash
@return MD5 hash of the input string
Compute MD5 of input value @param inputValue the value for which you want to compute MD5 hash @return MD5 hash of the input string
public static String md5(String inputValue) {
    try {
      MessageDigest md = MessageDigest.getInstance("MD5");
      return new String(Hex.encodeHex(md.digest(inputValue.getBytes("UTF-8")))).toUpperCase();
    } catch (Exception ex) {
      LOG.severe(Throwables.getStackTraceAsString(ex));
    }
    return null;
  }
public static String md5 ( String inputValue ) { try { MessageDigest md = MessageDigest . getInstance ( "MD5" ) ; return new String ( Hex . encodeHex ( md . digest ( inputValue . getBytes ( "UTF-8" ) ) ) ) . toUpperCase ( ) ; } catch ( Exception ex ) { LOG . severe ( Throwables . getStackTraceAsString ( ex ) ) ; } return null ; }
Compute MD5 of input value
 @param inputValue the value for which you want to compute MD5 hash
 @return MD5 hash of the input string
Compute MD5 of input value @param inputValue the value for which you want to compute MD5 hash @return MD5 hash of the input string