Hash

com.netflix.atlas.core.util.Hash
object Hash

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Hash.type

Members list

Value members

Concrete methods

def get(algorithm: String): MessageDigest
def lowbias32(v: Int): Int

Hash function for use with 32-bit integers. For more details on this hash see: https://nullprogram.com/blog/2018/07/31/

Hash function for use with 32-bit integers. For more details on this hash see: https://nullprogram.com/blog/2018/07/31/

Attributes

def lowbias64(v: Long): Int

Hash function for use with 64-bit integers.

Hash function for use with 64-bit integers.

Attributes

def md5(input: Array[Byte]): BigInteger
def md5(input: String): BigInteger
def sha1(input: Array[Byte]): BigInteger
def sha1(input: String): BigInteger
def sha1bytes(input: String): Array[Byte]