Swift implementation of the BCrypt password hashing function used in Vapor's packages.
import BCrypt let digest = try BCrypt.Hash.make(message: "foo") print(digest.string)
import BCrypt let digest = "$2a$04$TI13sbmh3IHnmRepeEFoJOkVZWsn5S1O8QOwm8ZU5gNIpJog9pXZm" let result = try BCrypt.Hash.verify(message: "vapor", matches: digest) print(result)
Visit the Vapor web framework's documentation for instructions on how to use this package.
Join the welcoming community of fellow Vapor developers in slack.
This package has been tested on macOS and Ubuntu.
Help us keep the lights on
1.1.0 - Aug 4, 2017
Swift 4 Beta Support - Aug 1 snapshot official
1.0.0 - May 17, 2017
BCrypt is a new package to help secure passwords and other encryption that might be necessary.
1.0.0-beta.1 - Mar 27, 2017
0.1.0 - Mar 7, 2017
Swift implementation of the BCrypt password hashing function.