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

izumi.fundamentals.platform.crypto.IzHash.scala Maven / Gradle / Ivy

package izumi.fundamentals.platform.crypto

trait IzHash {
  def sha256(bytes: Array[Byte]): Array[Byte]
  def sha256(str: String): String
}

object IzHash extends IzHash {
  override def sha256(bytes: Array[Byte]): Array[Byte] = {
    IzSha256HashFunction.hash(bytes)
  }

  override def sha256(str: String): String = {
    IzSha256HashFunction.hash(str)
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy