From 3cd8c72ed7096d1565f5333d90839808821fa4f7 Mon Sep 17 00:00:00 2001 From: Matt Hicks Date: Tue, 22 Nov 2022 11:28:41 -0600 Subject: [PATCH] Release 1.2.4 --- README.md | 6 +++--- build.sbt | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 6999a7f..06e86fe 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ Straight-forward password hashing and verification using the latest algorithms. ## SBT ```sbt -libraryDependencies += "com.outr" %% "scalapass" % "1.2.3" +libraryDependencies += "com.outr" %% "scalapass" % "1.2.4" ``` ## Creating a hash @@ -26,7 +26,7 @@ val factory = Argon2PasswordFactory() val password: String = "your-password-in-clear-text" // password: String = "your-password-in-clear-text" val hashed: String = factory.hash(password) -// hashed: String = "$argon2id$v=19$m=65536,t=50,p=8$RavyrLE7rnQoNSjG/KWOxA$UzDicX6rL/p31jJN9QnTWqHEXA9IFg6UTYOzm8Wh09s" +// hashed: String = "$argon2id$v=19$m=65536,t=50,p=8$7lY9GZ2HWkqQzQTKoE4ovA$NVYuL6+sWyU+c7Y9qnhlm+B5wihFVUhQ/DCbosk5Rxc" ``` Now store the one-way hashed password safely in your database. @@ -36,7 +36,7 @@ Now store the one-way hashed password safely in your database. val attemptedPassword: String = "your-password-in-clear-text" // attemptedPassword: String = "your-password-in-clear-text" val hashedPassword: String = hashed // From the database -// hashedPassword: String = "$argon2id$v=19$m=65536,t=50,p=8$RavyrLE7rnQoNSjG/KWOxA$UzDicX6rL/p31jJN9QnTWqHEXA9IFg6UTYOzm8Wh09s" // From the database +// hashedPassword: String = "$argon2id$v=19$m=65536,t=50,p=8$7lY9GZ2HWkqQzQTKoE4ovA$NVYuL6+sWyU+c7Y9qnhlm+B5wihFVUhQ/DCbosk5Rxc" // From the database val valid: Boolean = factory.verify(attemptedPassword, hashedPassword) // valid: Boolean = true ``` diff --git a/build.sbt b/build.sbt index 87e1436..fc9e26e 100644 --- a/build.sbt +++ b/build.sbt @@ -1,5 +1,5 @@ ThisBuild / organization := "com.outr" -ThisBuild / version := "1.2.3" +ThisBuild / version := "1.2.4" ThisBuild / scalaVersion := "2.13.10" ThisBuild / crossScalaVersions := List("2.13.10", "3.2.1") @@ -32,7 +32,7 @@ lazy val root = project .settings( name := "scalapass", libraryDependencies ++= Seq( - "com.outr" %% "profig" % "3.4.4", + "com.outr" %% "profig" % "3.4.5", "de.mkammerer" % "argon2-jvm" % "2.11", "commons-codec" % "commons-codec" % "1.15", "org.scalatest" %% "scalatest" % "3.2.14" % "test"