SwiftPasswordValidator

1.0.2

Password validator for Swift
tranquan/swift-password-validator

What's New

v1.0.2

2023-09-10T19:20:18Z

SwiftPasswordValidator

Password validator in Swift, inspired from password-validator

Example

let mediumPassword = PasswordValidatorBuilder()
	.hasLowercase()
	.hasUppercase()
	.hasNumbers()
	.build()
	
let result = mediumPassword.validate("Qwerty123")
// result.success: True

let strongPassword = PasswordValidatorBuilder()
	.hasLowercase()
	.hasUppercase()
	.hasNumbers()
	.hasLength(8)
	.build()
	
let result2 = strongPassword.validate("Qwerty123")
// result2.success: False

Description

  • Swift Tools 5.4.0
View More Packages from this Author

Dependencies

  • None
Last updated: Tue Oct 22 2024 01:59:11 GMT-0900 (Hawaii-Aleutian Daylight Time)