I have been searching for a library, cocoapod, or something else that allows me to implement Bcrypt in iOS using Swift.
BCryptSwift - cocoapod written in Swift.
There is also a cocoapod BCrypt, it's actually a version used in the Perfect (Swift-serverside toolkit), but adopted to be used in iOS as a cocoa pod dependency.
Sample usage:
import BCrypt
let password = "mypassword"
do {
let salt = try BCrypt.Salt()
let hashed = try BCrypt.Hash(password, salt: salt)
print("Hashed result is: \(hashed)")
}
catch {
print("An error occured: \(error)")
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With