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

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

There is a newer version: 1.2.16
Show newest version
package izumi.fundamentals.platform.crypto

import java.security.MessageDigest

object IzSha256HashFunction extends IzHashFunction {
  override def hash(bytes: Array[Byte]): Array[Byte] = {
    MessageDigest.getInstance("SHA-256").digest(bytes)
  }

  // scalajs workaround compatibility
  def setImported(): Unit = {}
  def getImpl: IzHashFunction = this

  override def id: IzHashId = IzHashId.SHA_256
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy