Example usage for com.google.common.hash Hashing sha512

List of usage examples for com.google.common.hash Hashing sha512

Introduction

In this page you can find the example usage for com.google.common.hash Hashing sha512.

Prototype

public static HashFunction sha512() 

Source Link

Document

Returns a hash function implementing the SHA-512 algorithm (512 hash bits) by delegating to the SHA-512 MessageDigest .

Usage

From source file:org.fenixedu.bennu.oauth.servlets.OAuthAuthorizationServlet.java

private static String generateCode() {
    return Hashing.sha512().hashString(UUID.randomUUID().toString(), StandardCharsets.UTF_8).toString();
}