Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
github.com/pixel16/passwordtextfield
A custom TextField with a switchable icon which shows or hides the password and enforces good password policies, written in Swift
.
You can use CocoaPods to install PasswordTextField
by adding it to your Podfile
:
platform :ios, '12.0'
use_frameworks!
pod 'PasswordTextField'
To get the full benefits import PasswordTextField
wherever you import UIKit
import UIKit
import PasswordTextField
Create a Cartfile
that lists the framework and run carthage bootstrap
. Follow the instructions to add $(SRCROOT)/Carthage/Build/iOS/PasswordTextField.framework
to an iOS project.
github "PiXeL16/PasswordTextField"
/PasswordTextField
folder in your project.UITextField
to a ViewController.UITextField
to PasswordTextField
and the module to PasswordTextField
.Property name | Data type | Remark |
---|---|---|
Show Toggle Button While | String | Possible values are editing (default), always , never |
Image Tint Color | UIColor | The color off the Toggle image, the functionality use UIImageRenderingMode.AlwaysTemplate to change the default or custom image color |
Custom Show Secure Text Image | UIImage | Your custom image to show the secure text |
Custom Hide Secure Text Image | UIImage | Your custom image to hide the secure text |
PasswordTextField
also provides functionality to enforce good password policies.
It will currently validate that the password format is at least 8 characters long and contain one uppercase letter and one number
.
import PasswordTextField
if passwordTextField.isInvalid(){
print(passwordTextField.errorMessage)
}
You can also provide your custom password validation format (with Regex) and error message:
import PasswordTextField
let validationRule = RegexRule(regex:"^[A-Z ]+$", errorMessage: "Password must contain only uppercase letters")
passwordTextField.validationRule = validationRule
if passwordTextField.isInvalid(){
print(passwordTextField.errorMessage)
}
Chris Jimenez - http://code.chrisjimenez.net, @chrisjimeneznat
If you want to buy me a beer, you can donate to my coin addresses below:
1BeGBew4CBdLgUSmvoyiU1LrM99GpkXgkj
0xa59a3793E3Cb5f3B1AdE6887783D225EDf67192d
Ld6FB3Tqjf6B8iz9Gn9sMr7BnowAjSUXaV
PasswordTextField
is released under the MIT license. See LICENSE for details.
FAQs
Unknown package
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.