All Downloads are FREE. Search and download functionalities are using the official Maven repository.

global.namespace.fun.io.delta.MessageDigests Maven / Gradle / Ivy

There is a newer version: 2.4.1
Show newest version
/*
 * Copyright (C) 2013-2018 Schlichtherle IT Services.
 * All rights reserved. Use is subject to license terms.
 */
package global.namespace.fun.io.delta;

import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;

/**
 * Provides message digest functions.
 *
 * @author Christian Schlichtherle
 */
final class MessageDigests {

    private MessageDigests() { }

    /** Returns a new SHA-1 message digest. */
    static MessageDigest sha1() {
        try {
            return MessageDigest.getInstance("SHA-1");
        } catch (NoSuchAlgorithmException e) {
            throw new IllegalStateException(e);
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy