Skip to content

Drop dependency on Commons Codec by native MD5 digest call #100

@reinouts

Description

@reinouts

Proposed implementation of Utils.getMD5Hash():

public static String getMD5Hash(String jsonString) throws UnsupportedEncodingException, NoSuchAlgorithmException {
    byte[] bytesOfMessage = jsonString.getBytes(RestServices.UTF8);
    MessageDigest md = MessageDigest.getInstance("MD5");
    return new String(md.digest(bytesOfMessage));
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions