Skip to content

Commit

Permalink
fix isBcryptedSafe examples
Browse files Browse the repository at this point in the history
  • Loading branch information
aqulu committed Aug 7, 2018
1 parent 2466acd commit 01072b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -22,7 +22,7 @@ rounds (eg. > 30 rounds).
#### Validate password

```scala
scala> "password".isBcrypted("$2a$10$iXIfki6AefgcUsPqR.niQ.FvIK8vdcfup09YmUxmzS/sQeuI3QOFG")
scala> "password".isBcryptedSafe("$2a$10$iXIfki6AefgcUsPqR.niQ.FvIK8vdcfup09YmUxmzS/sQeuI3QOFG")
res2: Try[Boolean] = Success(true)
```

Expand All @@ -32,7 +32,7 @@ fail-fast semantics. You can also use the desugared notation (`flatMap`s and `ma
```scala
scala> val bcryptAndVerify = for {
bcrypted <- "hello".bcrypt(12)
result <- "hello".isBcrypted(bcrypted)
result <- "hello".isBcryptedSafe(bcrypted)
} yield result
res: Try[Boolean] = Success(true)
```
Expand Down

0 comments on commit 01072b1

Please sign in to comment.