Skip to content

dagdelenmustafa/bcrypt4s

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bcrypt4s

Maven Central Build And Test codecov

Setup

SBT

libraryDependencies += "io.github.dagdelenmustafa" % "bcrypt4s" % "{version}"

Maven

<dependency>
    <groupId>io.github.dagdelenmustafa</groupId>
    <artifactId>bcrypt4s</artifactId>
    <version>{version}</version>
</dependency>

Usage

import com.mdagdelen.bcrypt4s

def run: F[Unit] = for {
  salt <- bcrypt4s.genSalt[F](logRounds = 12)
  hash <- bcrypt4s.hashPw[F]("1234", salt)
  isOk <- bcrypt4s.checkPw[F]("1234", hash)
  _ <- Console[F].println(isOk)
} yield ()

About

A tiny functional Scala wrapper for the jBCrypt.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages