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

tsec.passwordhashers.jca.HardenedSCrypt.scala Maven / Gradle / Ivy

The newest version!
package tsec.passwordhashers.jca

import tsec.passwordhashers._

sealed trait HardenedSCrypt

object HardenedSCrypt extends JCAPasswordPlatform[HardenedSCrypt] {

  private[tsec] def unsafeHashpw(p: Array[Byte]): String =
    SCryptUtil.scrypt(p, SCryptHardenedN, SCryptHardenedR, SCryptHardenedP)

  private[tsec] def unsafeCheckpw(p: Array[Byte], hash: PasswordHash[HardenedSCrypt]): Boolean =
    SCryptUtil.check(p, hash)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy