Updated on 2023-02-28 GMT+08:00

Md5Utils

Path

com.roma.apic.livedata.common.v1.Md5Utils

Description

This class is used to calculate the MD5 value.

Example

1
2
3
4
5
importClass(com.roma.apic.livedata.common.v1.Md5Utils);
function execute(data) {
    var sourceCode = "Hello world!";
    return Md5Utils.encode(sourceCode);
}

Method List

Returned Type

Method and Description

static String

encode(String content)

Calculate the MD5 value of a character string.

Method Details

  • public static String encode(String content)

    Calculate the MD5 value of a character string.

    Input Parameter

    content: character string whose MD5 is to be calculated.

    Returns

    MD5 value of a character string.