Felipe F Garcia

4pods

BCryptSwift

It currently is able to generate the salt and hash a phrase using a generated salt. BCryptSwift.generateSaltWithNumberOfRounds(rounds: UInt) -> String BCryptSwift.generateSalt() -> String BCryptSwift.hashPassword(password: String, withSalt salt: String) -> String? BCryptSwift.verifyPassword(password: String, matchesHash hash: String) -> Bool?

The generateSaltWithNumberOfRounds() class function will generate a random salt using the number of rounds provided. The number of rounds must be between 4 and 31 inclusively.

The generateSalt() class convenience function will generate a random salt using a default 10 rounds. This number can be adjusted based on your specific needs.

The hashPassword(withSalt:) class function will hash the password phrase using the salt. If there is an issue during processing, nil will be returned. Check the function documentation for details.

The verifyPassword(matchesHash:) class convenience function will hash the password phrase using the hash, then return the comparison between the new hash and the given hash. If there is an issue during processing, nil will be returned. Check the function documentation for details.

License: Apache-2.0

  • Swift

netfox

A lightweight, one line setup, network debugging library that provides a quick look on all executed network requests performed by your app. It grabs all requests - of course yours, requests from 3rd party libraries (such as AFNetworking or else), UIWebViews, and more. Very useful and handy for network related issues and bugs.

License: MIT

  • Swift