Latest 1.0.0
Homepage https://github.com/aberkunov/PerfectBCrypt
License MIT
Platforms ios 10.1
Authors

Version
License
Platform

This is the Perfect-BCrypt module written in Swift and adopted to use in iOS as a CocoaPod dependency. The original module is being used in the Perfect Toolkit, see PerfectSideRepos/PerfectBCrypt for more details

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

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)")
}

Requirements

  • iOS 10.0+
  • Xcode 10.1+
  • Swift 4.2+

Installation

BCrypt is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod 'BCrypt'

Author

Alexander Berkunov, [email protected]

License

BCrypt is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "BCrypt",
    "version": "1.0.0",
    "summary": "A Swift version of the BCrypt.",
    "description": "This CocoaPod is a Swift version of PerfectBCrypt adopted to iOS.",
    "homepage": "https://github.com/aberkunov/PerfectBCrypt",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Alexander Berkunov": "[email protected]"
    },
    "source": {
        "git": "https://github.com/aberkunov/PerfectBCrypt.git",
        "tag": "1.0.0"
    },
    "platforms": {
        "ios": "10.1"
    },
    "swift_version": "4.2",
    "pod_target_xcconfig": {
        "SWIFT_INCLUDE_PATHS": "$(PODS_TARGET_SRCROOT)/BCrypt/Classes/bcryptc",
        "HEADER_SEARCH_PATHS": "$(PODS_TARGET_SRCROOT)/BCrypt/Classes/bcryptc/include"
    },
    "source_files": "BCrypt/Classes/**/*"
}

Pin It on Pinterest

Share This