Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

import java.util.UUID;

public class Main {
    public static String md5UUID() {
        return md5(UUID());
    }

    public static String md5UUID(String key) {
        return md5(UUID(key));
    }

    public static String md5(String data) {
        return org.apache.commons.codec.digest.DigestUtils.md5Hex(data);
    }

    public static String UUID() {
        return UUID.randomUUID().toString();
    }

    public static String UUID(String key) {
        return UUID.fromString(key).toString();
    }
}