A port of Matt Thompsons ChromaHash JS secure password field. ( https://github.com/mattt/Chroma-Hash/ )
Objective-C Ruby
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
ChromaHash.xcodeproj
ChromaHash
.gitignore
ChromaHash.podspec
LICENSE
README.md
chromahash.png

README.md

iOSChromaHash

A port of Matt Thompsons ChromaHash JS secure password field. ( https://github.com/mattt/Chroma-Hash/ )

iOS Simulator Preview

Requirements

iOS5, ARC

Installation

Installation can be done using CocoaPods: add pod 'ChromaHash' to your Podfile, then run pod install.

or

Clone the repository, and add the following files to your project:

CHTextField.h 
CHTextField.m

Usage

Use it like a regular textfield, can be used from Interface Builder or in code. Has a few additional settings:

CHTextField *textField = [[CHTextField alloc] initWithFrame:CGRectZero];
textField.barCount = 4                    // number of bars, defaults to 3
textField.barWidth = 10                   // width of each bar, defaults to 10
textField.salt = @"twitter: @thingsdoer"  // salt for md5 hashing
textField.maskPath = nil;                 // allows you to provide a layer mask for the chroma
                                          // if your textField.borderStyle is UITextBorderStyleRoundedRect,
                                          // and this property is not set, the textField will mask appropriately
                                          // for the default UITextField style

Credits

Original concept by Matt Thompson.