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

io.imunity.otp.HashFunction Maven / Gradle / Ivy

The newest version!
/*
 * Copyright (c) 2018 Bixbit - Krzysztof Benedyczak. All rights reserved.
 * See LICENCE.txt file for licensing information.
 */
package io.imunity.otp;

public enum HashFunction 
{
	SHA1("HmacSHA1", 160),
	SHA256("HmacSHA256", 256), 
	SHA512("HmacSHA512", 512);
	
	public final String alg;
	final int bitLength;

	private HashFunction(String alg, int bitLength)
	{
		this.alg = alg;
		this.bitLength = bitLength;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy