BCrypt

1.1.1

Swift implementation of the BCrypt password hashing function
vapor-community/bcrypt

What's New

BCrypt 1.1.1

2018-05-24T21:40:15Z

Fixed:

  • Eliminate Swift 4.1 warnings

BCrypt

Swift CircleCI Slack Status

Swift implementation of the BCrypt password hashing function used in Vapor's packages.

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.

Description

  • Swift Tools 4.0.0
View More Packages from this Author

Dependencies

Last updated: Fri Apr 26 2024 20:43:48 GMT-0900 (Hawaii-Aleutian Daylight Time)