Skip to content

Commit

Permalink
Release 1.2.4
Browse files Browse the repository at this point in the history
  • Loading branch information
darkfrog26 committed Nov 22, 2022
1 parent 0b203d8 commit 3cd8c72
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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.
Expand All @@ -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
```
Expand Down
4 changes: 2 additions & 2 deletions build.sbt
Original file line number Diff line number Diff line change
@@ -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")
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit 3cd8c72

Please sign in to comment.