kadai.hash
SHA1s can be constructed from BigInts, but are usually represented as base16 or base32 encoded numbers.
You can use base16 and base32 constants by importing kadai.Encoding._ and using the b16 and b32 macros, for instance:
import kadai.Encoding._ val b16sha = SHA1(b16"6b5966ddebba343869154db719556062c781bc73") val b32sha = SHA1(b32"NNMWNXPLXI2DQ2IVJW3RSVLAMLDYDPDT") b16sha == b32sha // true
SHA1s can be constructed from BigInts, but are usually represented as base16 or base32 encoded numbers.
You can use base16 and base32 constants by importing kadai.Encoding._ and using the b16 and b32 macros, for instance: