object Hash
- Alphabetic
- By Inheritance
- Hash
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hash[Alg <: HashAlgorithm](m: String, charset: Charset)(implicit secure: Secure[Alg], alg: Alg): RIO[Hash, MessageDigest[String]]
Hashes the message
m
using the algorithmalg
.Hashes the message
m
using the algorithmalg
.- m
the message to hash. Encoded using
charset
.- returns
the computed hash.
- def hash[Alg <: HashAlgorithm](m: Chunk[Byte])(implicit secure: Secure[Alg], alg: Alg): RIO[Hash, MessageDigest[Chunk[Byte]]]
Hashes the message
m
using the algorithmalg
.Hashes the message
m
using the algorithmalg
.- m
the message to hash.
- returns
the computed hash.
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val live: ULayer[Hash]
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- def verify[Alg <: HashAlgorithm](m: String, digest: MessageDigest[String], charset: Charset)(implicit secure: Secure[Alg], alg: Alg): RIO[Hash, Boolean]
Verifies that the hash
digest
is the valid hash of the messagem
.Verifies that the hash
digest
is the valid hash of the messagem
. Returns true ifhash(m)
matchesdigest
.- m
the message that you'd like to check, encoded using
charset
.- digest
the digest to test for m
- returns
a boolean indiciating whether
hash(m) == digest
- def verify[Alg <: HashAlgorithm](m: Chunk[Byte], digest: MessageDigest[Chunk[Byte]])(implicit secure: Secure[Alg], alg: Alg): RIO[Hash, Boolean]
Verifies that the hash
digest
is the valid hash of the messagem
.Verifies that the hash
digest
is the valid hash of the messagem
. Returns true ifhash(m)
matchesdigest
.- m
the message that you'd like to check
- digest
the digest to test for m
- returns
a boolean indiciating whether
hash(m) == digest
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()