https://github.com/tannerdsilva/swiftbcrypt
Swift package wrapping the OpenWall BCrypt hashing algorithm
https://github.com/tannerdsilva/swiftbcrypt
bcrypt cryptography hash password swift
Last synced: 4 months ago
JSON representation
Swift package wrapping the OpenWall BCrypt hashing algorithm
- Host: GitHub
- URL: https://github.com/tannerdsilva/swiftbcrypt
- Owner: tannerdsilva
- License: mit
- Created: 2021-11-17T05:08:22.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-11-19T04:44:18.000Z (over 4 years ago)
- Last Synced: 2026-02-18T04:09:14.690Z (4 months ago)
- Topics: bcrypt, cryptography, hash, password, swift
- Language: Swift
- Homepage:
- Size: 3.91 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# SwiftBCrypt
A simple Swift Package wrapping the OpenWall BCrypt hashing algorithm.
## Generate Salt
```
let bcryptSalt = try BCRypt.makeSalt()
```
## Hash Phrases
```
let bcryptHash:Data = try BCrypt.hash(phrase:"ThisIsMySecurePassword1234", salt:bcryptSalt)
```
LICENSE
This package is offered under an MIT license, and is provided without warranty.