BCrypt

open class BCrypt

Modified jBcrypt to follow Java's style conventions. - Dustin K. Redmond

Copyright (c) 2006 Damien Miller Permission to use, copy, modify and distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.

https://github.com/dustinkredmond/bcrypt-generator

Functions

Link copied to clipboard
open fun checkpw(plaintext: String, hashed: String): Boolean
Check that a plaintext password matches a previously hashed one
Link copied to clipboard
open fun gensalt(): String
open fun gensalt(log_rounds: Int): String
open fun gensalt(log_rounds: Int, random: SecureRandom): String
Generate a salt for use with the BCrypt.
Link copied to clipboard
open fun hashpw(password: String, salt: String): String
Hash a password using the OpenBSD bcrypt scheme