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

sd.util.HmacSHA1.scala Maven / Gradle / Ivy

The newest version!
package sd.util

import org.apache.commons.codec.binary.Hex.encodeHex
import org.apache.commons.codec.digest.HmacUtils

object HmacSHA1 {
  @deprecated("Use HmacUtils from commons-codec directly", "1.2.1")
  def signHmacSHA1hex(message: String, secret: String): String = {
    val hmac = HmacUtils.hmacSha1(secret, message)
    new String(encodeHex(hmac, false))
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy