BFPassword
public enum BFPassword
This struct adds some useful functions to manage passwords.
-
Password strength level enum, from 0 (min) to 6 (max).
- veryWeak: Password strength very weak.
- weak: Password strength weak.
- average: Password strength average.
- strong: Password strength strong.
- veryStrong: Password strength very strong.
- secure: Password strength secure.
- verySecure: Password strength very secure.
Declaration
Swift
public enum PasswordStrengthLevel : Int
-
Check the password strength level.
- Rarameter password: Password string.
Declaration
Swift
public static func strength(password: String) -> PasswordStrengthLevel
Return Value
Returns the password strength level with value from enum PasswordStrengthLevel.