Contents

vapor-community/bcrypt

> Note: This repo is now archived as we've migrated to a [C implementation inside Vapor](https://github.com/vapor/vapor/tree/4.84.6/Sources/CVaporBcrypt) for performance reasons

Usage

Hash

import BCrypt

let digest = try BCrypt.Hash.make(message: "foo")
print(digest.string)

Verify

import BCrypt

let digest = "$2a$04$TI13sbmh3IHnmRepeEFoJOkVZWsn5S1O8QOwm8ZU5gNIpJog9pXZm"
let result = try BCrypt.Hash.verify(message: "vapor", matches: digest)
print(result)

πŸ“– Documentation

Visit the Vapor web framework's documentation for instructions on how to use this package.

πŸ’§ Community

Join the welcoming community of fellow Vapor developers in slack.

πŸ”§ Compatibility

This package has been tested on macOS and Ubuntu.

Package Metadata

Repository: vapor-community/bcrypt

Default branch: master

README: README.md