BCrypt
public struct BCrypt
Undocumented
-
Undocumented
Declaration
Swift
public init() -
Undocumented
Declaration
Swift
public func generateRandomBase64EncodedString(count: UInt) throws -> String -
Undocumented
Declaration
Swift
public func generateSalt(cost: UInt, algorithm: Algorithm = ._2b) throws -> String -
Undocumented
Declaration
Swift
public func hash(_ plaintext: String, cost: UInt = 12, algorithm: Algorithm = ._2b) throws -> String -
Undocumented
Declaration
Swift
public func hash(_ plaintext: String, salt: String) throws -> String -
Undocumented
Declaration
Swift
public func verify(_ plaintext: String, against hashedText: String) throws -> Bool -
Undocumented
See moreDeclaration
Swift
public enum Algorithm : String, CaseIterable
View on GitHub
Install in Dash
BCrypt Structure Reference